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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=todo.sr.ht
pkgver=0.72.12
pkgrel=0
pkgdesc="sr.ht ticket tracking service"
url="https://git.sr.ht/~sircmpwn/todo.sr.ht"
arch="all"
license="AGPLv3"
depends="
py3-aiosmtpd
py3-gunicorn
py3-srht
"
makedepends="py-setuptools nodejs sassc go"
subpackages="$pkgname-openrc $pkgname-nginx:_nginx"
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
todo.sr.ht.initd
todo.sr.ht.confd
todo.sr.ht-lmtp.initd
todo.sr.ht-lmtp.confd
todo.sr.ht-webhooks.confd
todo.sr.ht-webhooks.initd
todo.sr.ht-api.confd
todo.sr.ht-api.initd
todo.sr.ht.gunicorn.conf.py
"
export PKGVER=$pkgver
options="$options !check"
install="$pkgname.post-install $pkgname.post-upgrade"
build() {
python3 setup.py build
pyver="$(python3 --version | cut -d. -f1-2 | cut -d' ' -f2-)"
make SRHT_PATH=/usr/lib/python$pyver/site-packages/srht
}
package() {
python3 setup.py install --root="$pkgdir" --optimize=1
install -Dm755 api/api "$pkgdir"/usr/bin/todosrht-api
install -Dm755 "$srcdir"/todo.sr.ht.initd \
"$pkgdir"/etc/init.d/todo.sr.ht
install -Dm644 "$srcdir"/todo.sr.ht.confd \
"$pkgdir"/etc/conf.d/todo.sr.ht
install -Dm755 "$srcdir"/todo.sr.ht-lmtp.initd \
"$pkgdir"/etc/init.d/todo.sr.ht-lmtp
install -Dm644 "$srcdir"/todo.sr.ht-lmtp.confd \
"$pkgdir"/etc/conf.d/todo.sr.ht-lmtp
install -Dm755 "$srcdir"/todo.sr.ht-webhooks.initd \
"$pkgdir"/etc/init.d/todo.sr.ht-webhooks
install -Dm644 "$srcdir"/todo.sr.ht-webhooks.confd \
"$pkgdir"/etc/conf.d/todo.sr.ht-webhooks
install -Dm755 "$srcdir"/todo.sr.ht-api.initd \
"$pkgdir"/etc/init.d/todo.sr.ht-api
install -Dm644 "$srcdir"/todo.sr.ht-api.confd \
"$pkgdir"/etc/conf.d/todo.sr.ht-api
install -Dm644 "$srcdir"/todo.sr.ht.gunicorn.conf.py \
"$pkgdir"/etc/sr.ht/todo.sr.ht.gunicorn.conf.py
}
_nginx() {
depends="sr.ht-nginx"
pkgdesc="nginx configuration for $pkgname"
install -Dm644 "$srcdir/sr.ht-nginx-master/todo.sr.ht.conf" \
"$subpkgdir"/etc/nginx/http.d/todo.sr.ht.conf
}
sha512sums="
76a679d8e817f841c01ddd5f82f9c9bca3a6957f70422844b1166f5dba6550bb1d8d284ca92e7e3415b88fab8a6866876ada08272b84583f7149d0c3301e0045 todo.sr.ht-0.72.12.tar.gz
6a1be43d5e3caa98ebcfc9546cb46a9abf4691a6a772c24ba8872b54c3dca6c65f2615443be74d59f262d0be3b0972a326f659fd860f6fc73e48b08b07283f20 sr.ht-nginx-0.72.12.tar.gz
946a15e8a723dea178edc451b461f756761a9429fd434820df1955225a9fe73c7aefb838ec32bb9f3a3f7b80a5921641540cdf5fcde3fff272420ea1abe3970e todo.sr.ht.initd
a71116bd25e0c6e8e3e14e4dadb653e6360e2b468bd415439559b56ffc18724efa9bcb593181d8f0fe0cbccf96f3196a452659bb4375e687faf0b09a48ef5557 todo.sr.ht.confd
c4ac342b5fa506c1323d9c55f36b800e16cb9afdecc32f94bf7261c8fa2710db839b84137d24f3e43ac28e036cf21f63c381a650661e722e416c61a6cf44c938 todo.sr.ht-lmtp.initd
8765703a5ac67da782e471f3f89d0c6fb58cf1dba7342377bccba6e39bd324c47d13948edd5a99af6376b39f60239b3689f6983b92353380f208fe1f12589907 todo.sr.ht-lmtp.confd
befda599f189e99b542ebaf5dd17739169bf73a1499c9de92a98778bd108bb9813e1838e461ced494c6b495a16e34cf805abdb3ccabcf14c2ccecf2d42e780df todo.sr.ht-webhooks.confd
a2e9686eacd4f37262067749b8844c005839cf190751ab9d49f631e1aa61f64541715e19a942ab20f0541db2b7594499c5c12b522c7b4b90176543f05d576eb7 todo.sr.ht-webhooks.initd
6d096a0559db2c689938e0f0c24d0158efe836dec209f694256f2803494884f206cab423cd5d3b08a68c9446aa2aff1eca0a95da31088fa8a9628becbf344215 todo.sr.ht-api.confd
a1b4901c6e18bc5826bb359941c99b53143f2b4ecdddf6fbba89c78fa4721578720d9a60fe95d4a4d382ef98cf1c3ad3e3f75d5d46782b1ec349c0c2adc7164b todo.sr.ht-api.initd
21f39ea0981d7773eb512e5ba234022364d0f7ee9b6ca897ce4c51e3b127eb2d9a7a5fbcaa06d14f20b2df2439421d7261f200e3f4f13b45a91e78ba77bc363c todo.sr.ht.gunicorn.conf.py
"