~dricottone/huttese-apk

ref: 5e4e777d17b61883fce8c7212de74cd737b969c8 huttese-apk/sr.ht/meta.sr.ht/APKBUILD -rw-r--r-- 2.0 KiB
5e4e777d — Drew DeVault prometheus: upgrade to 2.11.0 5 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=meta.sr.ht
pkgver=0.33.1
pkgrel=0
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-prometheus-client
	py3-zxcvbn
	redis
"
makedepends="py-setuptools nodejs sassc"
subpackages="${pkgname}-openrc"
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
}

sha512sums="eaece632bfe8ae4c7d109aa5ca0e4ed200b866441003d8d26bcd4201cffe3b63b351a7a9b46324bad2240165769ceb85389b0ca07afe224c9c0387c82c2fca5d  meta.sr.ht-0.33.1.tar.gz
835da241def0e914b0c089113d1fd80023f727969c5cb46fc59608223ab698cd1f624bf43dd100a1b89f9a4959a1f1ae0072c1f268f8988a3e67378a4badaab0  meta.sr.ht.initd
6ee005b75d1a277a3795a0b91eb88c490f27f4053cad5d74051140e812ee5514c77a334f37cd70a3ef7be02feae4a0688e9c06401cd530d3d56b3441c3d57a54  meta.sr.ht.confd
6f307bfd287d3508b8fb0b7c5dc41b2ce935a98052d9b7f9c8a95148f810a0af11fae7a07918bc115c78a8b33ae88ba9b0a0209f52c7e5228f95cb94ccc992ea  meta.sr.ht-webhooks.initd
b055504df3b8ede19aa50d36d97c255f6310dbc6e4fd62f6776beb8d62d0592b761819ecb3120754dbb8ad0b48c04b41bae95a2264de0d96de9e1bee70bc2693  meta.sr.ht-webhooks.confd"