~dricottone/huttese-apk

ref: 19ae9ecb7fbd665e7d5335d4f364aa2eb70a8f2d huttese-apk/sr.ht/dispatch.sr.ht/APKBUILD -rw-r--r-- 1.3 KiB
19ae9ecb — Drew DeVault dispatch.sr.ht: overhaul init files 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=dispatch.sr.ht
pkgver=0.14.5
pkgrel=0
pkgdesc="sr.ht dispatch service"
url="https://git.sr.ht/~sircmpwn/dispatch.sr.ht"
arch="noarch"
license="AGPLv3"
depends="
	py3-gunicorn
	py3-pygithub
	py3-srht
	py3-yaml
"
makedepends="py-setuptools nodejs sassc"
subpackages="${pkgname}-openrc"
source="
	$pkgname-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/$pkgname/archive/$pkgver.tar.gz
	dispatch.sr.ht.confd
	dispatch.sr.ht.initd
"
builddir="$srcdir/$pkgname-$pkgver"
export PKGVER=$pkgver
options="$options !check"
install="$pkgname.post-install $pkgname.post-upgrade"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --root="$pkgdir" --optimize=1
	install -Dm755 "$srcdir"/dispatch.sr.ht.initd \
		"$pkgdir"/etc/init.d/dispatch.sr.ht
	install -Dm644 "$srcdir"/dispatch.sr.ht.confd \
		"$pkgdir"/etc/conf.d/dispatch.sr.ht
}

sha512sums="3270903bfd8995c570cda06e76b27e43bac5243fd1f2eaed9bcf35a60326b3805d8119aa287ccd03f9ca934bde58d82a00ac027fb46449683c25cb870c217b25  dispatch.sr.ht-0.14.5.tar.gz
2cb15282905d56d6b17f5aed032b15d98da64c9ec315db4650e0729398a9ea4d9704a57e3b7f55e1c5381914f7fe5e85b58e4e88e9e68fcab89ef1763e377278  dispatch.sr.ht.confd
a3b7f73aa99c428e8cacd823d39c1fa472746b237887c2e69b9fc53600d9148944e8a89b6af050c9f1114e148ff06f343f495e89d704b470596955ae57fe4378  dispatch.sr.ht.initd"