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.31.2
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-pyotp
py3-pystache
py3-qrcode
py3-redis
py3-srht
py3-sshpubkeys
py3-prometheus-client
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="6e592c84715e2af400a80855b805f3017f56bd4c708a2fa7103b96d38a687a51bf4da24f176147aa450bb6b44ccb6dd8a70289871b2e299d82e2fcda75352119 meta.sr.ht-0.31.1.tar.gz
16674a3b4011c0900158af7ad8e241a26d83a2a4edb01c21256073b8373da977efc4f581992f9c4b1917423b3680c71e5e0364748ab9f375205393298ceccdbe meta.sr.ht.initd
6ee005b75d1a277a3795a0b91eb88c490f27f4053cad5d74051140e812ee5514c77a334f37cd70a3ef7be02feae4a0688e9c06401cd530d3d56b3441c3d57a54 meta.sr.ht.confd
10b4cc09f13c61352c5d0be895eb0012b2781e7a4e11d95dd2787ad31295ec3098f0355fc2b28acae010b080241064168a5ad0d837065e8d24ba4e174bbaa2b6 meta.sr.ht-webhooks.initd
b055504df3b8ede19aa50d36d97c255f6310dbc6e4fd62f6776beb8d62d0592b761819ecb3120754dbb8ad0b48c04b41bae95a2264de0d96de9e1bee70bc2693 meta.sr.ht-webhooks.confd"