~dricottone/huttese-apk

ref: 37705be3da581e08500b5c711825e2a83b704304 huttese-apk/sr.ht/dispatch.sr.ht/APKBUILD -rw-r--r-- 2.1 KiB
37705be3 — Drew DeVault py3-stripe: upgrade to 2.68.0 2 years ago
                                                                                
f90215b9 Drew DeVault
89791a18 Ignas Kiela
19ae9ecb Drew DeVault
f90215b9 Drew DeVault
68c0405c Drew DeVault
f90215b9 Drew DeVault
68c0405c Drew DeVault
19ae9ecb Drew DeVault
89791a18 Ignas Kiela
f90215b9 Drew DeVault
19ae9ecb Drew DeVault
f90215b9 Drew DeVault
19ae9ecb Drew DeVault
89791a18 Ignas Kiela
f90215b9 Drew DeVault
68c0405c Drew DeVault
404b2a00 Drew DeVault
68c0405c Drew DeVault
5252462d Drew DeVault
68c0405c Drew DeVault
89791a18 Ignas Kiela
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=dispatch.sr.ht
pkgver=0.15.33
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 $pkgname-nginx:_nginx"
source="
	$pkgname-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/$pkgname/archive/$pkgver.tar.gz
	sr.ht-nginx-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/sr.ht-nginx/archive/master.tar.gz
	dispatch.sr.ht.confd
	dispatch.sr.ht.initd
	dispatch.sr.ht.gunicorn.conf.py
"
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
	install -Dm644 "$srcdir"/dispatch.sr.ht.gunicorn.conf.py \
		"$pkgdir"/etc/sr.ht/dispatch.sr.ht.gunicorn.conf.py

}

_nginx() {
	depends="sr.ht-nginx"
	pkgdesc="nginx configuration for $pkgname"
	install -Dm644 "$srcdir/sr.ht-nginx-master/dispatch.sr.ht.conf" \
		"$subpkgdir"/etc/nginx/http.d/dispatch.sr.ht.conf
}

sha512sums="
b581922de780139a313aa0fe2250aaa8710b33660f58195e8238b88c98437703bc622638563e8142b726dc16e920c9396959a94a6166d723726ed357b116ab6c  dispatch.sr.ht-0.15.33.tar.gz
917bbc9a493f6aa756af3f3597f9edf2e25227efe30f6ab635f99a7d9f4ecd6e9f36a7f2b9b40cc95b6e584dd62e1a0badb46e4ff9d3c3d5ce959455b15a95b6  sr.ht-nginx-0.15.33.tar.gz
ea2cea43b8d48fedd50117eec8166635e927fe13a1b7cd4ff27e79c0b428b9a276dbe9ebcde5ce2c08ec8a6da75bf1d0d1b820456ac7003ecc8afafd4fcb2faf  dispatch.sr.ht.confd
94df16f5ba6d1017fd9f890548773d931a556c18432b98f4bd7f40ffc198ffccee72372b760720ba2edb0fea926d2d700fd0c8f23ff860fe47c1b9e6793cd047  dispatch.sr.ht.initd
21f39ea0981d7773eb512e5ba234022364d0f7ee9b6ca897ce4c51e3b127eb2d9a7a5fbcaa06d14f20b2df2439421d7261f200e3f4f13b45a91e78ba77bc363c  dispatch.sr.ht.gunicorn.conf.py
"