~dricottone/huttese-apk

ref: 4d69eb9ddf00203a6f3d6fee07d3d372f321b3d6 huttese-apk/sr.ht/meta.sr.ht/APKBUILD -rw-r--r-- 3.3 KiB
4d69eb9d — Simon Ser soju: upgrade 3 years ago
                                                                                
bdb848ee Drew DeVault
8d6b388e Drew DeVault
77c25fef Drew DeVault
bdb848ee Drew DeVault
77c25fef Drew DeVault
bdb848ee Drew DeVault
95c16981 Drew DeVault
9f5b3ba9 Drew DeVault
95c16981 Drew DeVault
bdb848ee Drew DeVault
95c16981 Drew DeVault
9e45d4cc Drew DeVault
bdb848ee Drew DeVault
77c25fef Drew DeVault
32e00959 Drew DeVault
cbc08392 Drew DeVault
bdb848ee Drew DeVault
694a3f7e Drew DeVault
cbc08392 Drew DeVault
79c2dc9a Drew DeVault
77c25fef Drew DeVault
79c2dc9a Drew DeVault
bdb848ee Drew DeVault
77c25fef Drew DeVault
bdb848ee Drew DeVault
79c2dc9a Drew DeVault
77c25fef Drew DeVault
79c2dc9a Drew DeVault
17867a8b Drew DeVault
79c2dc9a Drew DeVault
77c25fef Drew DeVault
bdb848ee Drew DeVault
d49b5d68 Drew DeVault
a47a6cb0 Drew DeVault
d49b5d68 Drew DeVault
cbc08392 Drew DeVault
32e00959 Drew DeVault
cbc08392 Drew DeVault
5252462d Drew DeVault
cbc08392 Drew DeVault
cc488a9b Drew DeVault
8d6b388e Drew DeVault
5a0522b4 Drew DeVault
cc488a9b 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=meta.sr.ht
pkgver=0.54.3
pkgrel=0
pkgdesc="sr.ht account service"
url="https://git.sr.ht/~sircmpwn/meta.sr.ht"
arch="all"
license="AGPLv3"
depends="
	py3-bcrypt
	py3-dnspython
	py3-gunicorn
	py3-pgpy
	py3-qrcode
	py3-redis
	py3-srht
	py3-sshpubkeys
	py3-zxcvbn
	redis
"
makedepends="py-setuptools nodejs sassc go"
subpackages="$pkgname-openrc $pkgname-billing:_billing:noarch $pkgname-nginx:_nginx:noarch"
# XXX: Is this sr.ht-nginx URL acceptable? I'm not sure how to version it
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
	meta.sr.ht.initd
	meta.sr.ht.confd
	meta.sr.ht-api.initd
	meta.sr.ht-api.confd
	meta.sr.ht-webhooks.initd
	meta.sr.ht-webhooks.confd
"
builddir="$srcdir/$pkgname-$pkgver"
export PKGVER=$pkgver
options="$options !check"
install="$pkgname.post-install $pkgname.post-upgrade"

build() {
	python3 setup.py build
	cd api
	go build -o metasrht-api
}

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

	cd api
	install -Dm755 metasrht-api "$pkgdir"/usr/bin/metasrht-api
}

_billing() {
	depends="py3-weasyprint py3-html5lib py3-stripe"
	pkgdesc="Extra meta.sr.ht dependencies for billing"
	mkdir -p "$subpkgdir"/usr/lib/python3.8/site-packages/metasrht
	touch "$subpkgdir"/usr/lib/python3.8/site-packages/metasrht/.billing
}

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

sha512sums="
87bc4308dd61ff9b6dc13169c722e6c45367044f6e3e38da7700270887e6c3357d501af9f2b68748c1a487de9802acf291db47244d9a4ed5c62e5e755e95a2e3  meta.sr.ht-0.54.3.tar.gz
4bc2435c8f67e44d3fdfa9ce2d1f15fbd0a45f066204e56fd5466084b78d12c2a88479d46bfffd185abe1d3a0302a46ce5e73d5e4da239e57707385e63e70b41  sr.ht-nginx-0.54.3.tar.gz
c1782e12caaeb11db5eab299dbee1510ee1a697840c5b5ecd46aec23f7a16acc6e60fa0b7959a1cbcbc2614183b4e988f9eb905da475e418fd4b13fd53c71e2a  meta.sr.ht.initd
7e29f31839febf557d484f34de800e89be39d7a288cc5ea0b4d7fbdf13a722564d3795fdf0da53c5e2f9fb79f3e9b57508b569aa99762e35c4f9ac50f7dff59e  meta.sr.ht.confd
8377026251395fa74980a6733a6715c5dcfa6b893ad846d556479d3170605ba7cbe5dcc1c482f90a20e0b6332732cba9480d198dfcc9d73d2d6e338e5276bc65  meta.sr.ht-api.initd
36550c28b15fbdf32051591a9231035852916ae701521afa00b7da5959ec08c6eca74714ecea3b8d5f35d41c388aadd61ddfeee9a270cefdadf9be32b0ced145  meta.sr.ht-api.confd
26db23b2302c5a3a3dcb6068f0bc57d932a24ff8bcf288b8d8e1ca2385ee05603eded26e19b73c40adc96b8a0d2fad64c4f28526d69bcbc61981df8acc3efb11  meta.sr.ht-webhooks.initd
0091092a0f0f77158c571e0731470239034cd1480657755ca0537ab4d00002d60b444bcd7df12bfc86b4ca79f5cfed51722079a46a44abc8bf2ba6a7e1111a7c  meta.sr.ht-webhooks.confd
"