~dricottone/huttese-apk

ref: a411788b6c2472b4a74a5cc96c2d72e6400be206 huttese-apk/sr.ht/meta.sr.ht/APKBUILD -rw-r--r-- 2.2 KiB
a411788b — j3s Fix git.sr.ht user creation 4 years ago
                                                                                
bdb848ee Drew DeVault
d49b5d68 Drew DeVault
bdb848ee Drew DeVault
95c16981 Drew DeVault
bdb848ee Drew DeVault
95c16981 Drew DeVault
bdb848ee Drew DeVault
95c16981 Drew DeVault
9e45d4cc Drew DeVault
bdb848ee Drew DeVault
d49b5d68 Drew DeVault
bdb848ee Drew DeVault
694a3f7e Drew DeVault
79c2dc9a Drew DeVault
bdb848ee Drew DeVault
79c2dc9a Drew DeVault
17867a8b Drew DeVault
79c2dc9a Drew DeVault
bdb848ee Drew DeVault
d49b5d68 Drew DeVault
a47a6cb0 Drew DeVault
d49b5d68 Drew DeVault
7c65fd1a Drew DeVault
79c2dc9a Drew DeVault
7c65fd1a Drew DeVault
79c2dc9a 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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=meta.sr.ht
pkgver=0.41.10
pkgrel=1
pkgdesc="sr.ht account service"
url="https://git.sr.ht/~sircmpwn/meta.sr.ht"
arch="noarch"
license="AGPLv3"
depends="
	py3-bcrypt
	py3-gunicorn
	py3-pgpy
	py3-pystache
	py3-qrcode
	py3-redis
	py3-srht
	py3-sshpubkeys
	py3-zxcvbn
	redis
"
makedepends="py-setuptools nodejs sassc"
subpackages="$pkgname-openrc $pkgname-billing:_billing"
source="
	$pkgname-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/$pkgname/archive/$pkgver.tar.gz
	meta.sr.ht.initd
	meta.sr.ht.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() {
	cd "$builddir"
	python3 setup.py build
}

package() {
	cd "$builddir"
	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-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
}

_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
}

sha512sums="45acab54174254b7f9d049462fb1f2e0c88a6f7127dbded67cd4f1c46e0e371728a1c0daaf0c598b3999f5f8e1ff1b4c26c9a762b5745f3f0b14f3d92022e8f2  meta.sr.ht-0.41.10.tar.gz
835da241def0e914b0c089113d1fd80023f727969c5cb46fc59608223ab698cd1f624bf43dd100a1b89f9a4959a1f1ae0072c1f268f8988a3e67378a4badaab0  meta.sr.ht.initd
6ee005b75d1a277a3795a0b91eb88c490f27f4053cad5d74051140e812ee5514c77a334f37cd70a3ef7be02feae4a0688e9c06401cd530d3d56b3441c3d57a54  meta.sr.ht.confd
6f307bfd287d3508b8fb0b7c5dc41b2ce935a98052d9b7f9c8a95148f810a0af11fae7a07918bc115c78a8b33ae88ba9b0a0209f52c7e5228f95cb94ccc992ea  meta.sr.ht-webhooks.initd
b055504df3b8ede19aa50d36d97c255f6310dbc6e4fd62f6776beb8d62d0592b761819ecb3120754dbb8ad0b48c04b41bae95a2264de0d96de9e1bee70bc2693  meta.sr.ht-webhooks.confd"