@@ 28,8 28,7 @@ install="$pkgname.post-install $pkgname.post-upgrade"
build() {
python3 setup.py build
- cd api
- go build -o pastesrht-api
+ make
}
package() {
@@ 42,9 41,9 @@ package() {
"$pkgdir"/etc/init.d/paste.sr.ht-api
install -Dm644 "$srcdir"/paste.sr.ht-api.confd \
"$pkgdir"/etc/conf.d/paste.sr.ht-api
- install -Dm755 api/pastesrht-api "$pkgdir"/usr/bin/pastesrht-api
install -Dm644 "$srcdir"/paste.sr.ht.gunicorn.conf.py \
"$pkgdir"/etc/sr.ht/paste.sr.ht.gunicorn.conf.py
+ install -Dm755 api/api "$pkgdir"/usr/bin/pastesrht-api
}
_nginx() {