@@ 47,6 47,7 @@ build() {
}
package() {
+ cd "$builddir"
python3 setup.py install --root="$pkgdir" --optimize=1
install -Dm755 api/api "$pkgdir"/usr/bin/builds.sr.ht-api
install -Dm755 "$srcdir"/builds.sr.ht.initd \
@@ 62,6 63,7 @@ package() {
_images() {
depends="builds.sr.ht"
pkgdesc="builds.sr.ht build images"
+ cd "$builddir"
mkdir -p "$subpkgdir"/var/lib/
cp -R images "$subpkgdir"/var/lib/
}
@@ 69,6 71,7 @@ _images() {
_worker() {
depends="builds.sr.ht-images"
pkgdesc="builds.sr.ht build worker"
+ cd "$builddir"
install -Dm755 worker/worker "$subpkgdir"/usr/bin/builds.sr.ht-worker
install -Dm755 "$srcdir"/builds.sr.ht-worker.initd \
"$subpkgdir"/etc/init.d/builds.sr.ht-worker