~dricottone/huttese-apk

ref: 81d9b5e222c289ad1344f7282dbea7be9e1494c1 huttese-apk/sr.ht/lists.sr.ht/APKBUILD -rw-r--r-- 1.8 KiB
81d9b5e2 — Drew DeVault Update prometheus, alertmanager init scripts 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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=lists.sr.ht
pkgver=0.14.1
pkgrel=1
pkgdesc="sr.ht mailing list service"
url="https://git.sr.ht/~sircmpwn/lists.sr.ht"
arch="noarch"
license="AGPLv3"
depends="
	py3-srht
	py3-celery
	py3-aiosmtpd
	py3-asyncpg
	py3-redis
	py3-unidiff
	py3-gunicorn
"
makedepends="py-setuptools nodejs sassc"
subpackages="${pkgname}-openrc"
source="
	$pkgname-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/$pkgname/archive/$pkgver.tar.gz
	lists.sr.ht.init
	lists.sr.ht-process.init
	lists.sr.ht-lmtp.init
	lists.sr.ht-webhooks.init
"
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
	mkdir -p "$pkgdir"/etc/init.d
	install -Dm755 "$srcdir"/lists.sr.ht.init "$pkgdir"/etc/init.d/lists.sr.ht
	install -Dm755 "$srcdir"/lists.sr.ht-lmtp.init \
		"$pkgdir"/etc/init.d/lists.sr.ht-lmtp
	install -Dm755 "$srcdir"/lists.sr.ht-process.init \
		"$pkgdir"/etc/init.d/lists.sr.ht-process
	install -Dm755 "$srcdir"/lists.sr.ht-webhooks.init \
		"$pkgdir"/etc/init.d/lists.sr.ht-webhooks
}

sha512sums="80132b5b6af35902ac40be9202916a94257e62b348d5a60bf79fc6faeda319d7ed1639e486ab21c5906818c0b7176dc5658f995114343bf647ef46e803350116  lists.sr.ht-0.14.1.tar.gz
12d18641115a9f78e25f19a45686192d4f1123a58bfd8f5cd0a0e6e5b360af422309e405eedb46805a0f57913d7f2b0b99550895fa0e44654ed467a934a10fc6  lists.sr.ht.init
f5e5d188c3a6ced902d7965af4a5f4d1e2ebcdef9d57a2ac73b179e0a7ca60ab96f19ce3e8b63657f32fb7e8d0eb43588e716349d9d8965cdacbfc37c59d9593  lists.sr.ht-process.init
a1b95550a715eecc2a4ce5d4675748ec7f2c514646710b6326882513b81cc19ac02e463f7e8b48f3e45d5115ea8c6b81ad3d92547e5a13b2a9e521c9502dbb65  lists.sr.ht-lmtp.init"