~dricottone/huttese-apk

ref: 7f89568c4e427436cdc0ecb4f06f13a779e33b3e huttese-apk/sr.ht/dispatch.sr.ht/APKBUILD -rw-r--r-- 1.3 KiB
7f89568c — Drew DeVault hg.sr.ht: add -nginx subpackage 4 years ago
                                                                                
f90215b9 Drew DeVault
19ae9ecb Drew DeVault
f90215b9 Drew DeVault
19ae9ecb Drew DeVault
f90215b9 Drew DeVault
19ae9ecb Drew DeVault
f90215b9 Drew DeVault
19ae9ecb Drew DeVault
f90215b9 Drew DeVault
19ae9ecb Drew DeVault
b354aec1 Drew DeVault
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
9e96f369c042faba2130e20861e3f6e458c0d986961bff284040f76832012c488836aef870e4e7ba238f8443659953a0edfc0f1c10878ca73d27fe3756766955  dispatch.sr.ht.initd"