@@ 32,10 32,7 @@ install="$pkgname.post-install $pkgname.post-upgrade"
build() {
python3 setup.py build
- cd hgsrht-keys
- go build
- cd ../api
- go build
+ make
}
package() {
@@ 55,10 52,8 @@ package() {
"$pkgdir"/etc/conf.d/hg.sr.ht-webhooks
install -Dm644 "$srcdir"/hg.sr.ht.gunicorn.conf.py \
"$pkgdir"/etc/sr.ht/hg.sr.ht.gunicorn.conf.py
- cd hgsrht-keys
- install -Dm755 hgsrht-keys "$pkgdir"/usr/bin/hgsrht-keys
- cd ../api
- install -Dm755 api "$pkgdir"/usr/bin/hgsrht-api
+ install -Dm755 hgsrht-keys/hgsrht-keys "$pkgdir"/usr/bin/hgsrht-keys
+ install -Dm755 api/api "$pkgdir"/usr/bin/hgsrht-api
cd ../hgsrht/hgrcs
install -Dm644 global.cfg "$pkgdir"/etc/sr.ht/hgrcs/global.cfg
install -Dm644 nonpublishing.cfg "$pkgdir"/etc/sr.ht/hgrcs/nonpublishing.cfg