~dricottone/apkbuilds

apkbuilds/src/todo.sr.ht/APKBUILD -rw-r--r-- 3.7 KiB
45a301f4Dominic Ricottone I missed another update a month 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
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.75.19
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 sassc go minify"
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 net !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="
57a8215a2c733a5d4a258a25138284aad2915cd082c93bfd7ca1bebdc52c75599ca353958cb6f0714244263b5f0ca83ab2e46b1c3f8f9b5b042a7bd236ed7cac  todo.sr.ht-0.75.19.tar.gz
cfece31d18db3bb2253aea80a39250bd9bb8ad891586cacb0e67f78e721b76b12364d896dbdbce420e0a5cd9d4a8afb6fcc501b8d896ba0d53c6b66137193c79  sr.ht-nginx-0.75.19.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
0e23d03aaf3a435b875716c02f5aa1474e652c5737f12ba8c1a899c3838a9b1ef8d72fc9ad9fa6d98120ba638352a4ad767aae0bb2c1091ad4a6d7a21cb001fb  todo.sr.ht-webhooks.initd
6d096a0559db2c689938e0f0c24d0158efe836dec209f694256f2803494884f206cab423cd5d3b08a68c9446aa2aff1eca0a95da31088fa8a9628becbf344215  todo.sr.ht-api.confd
a1b4901c6e18bc5826bb359941c99b53143f2b4ecdddf6fbba89c78fa4721578720d9a60fe95d4a4d382ef98cf1c3ad3e3f75d5d46782b1ec349c0c2adc7164b  todo.sr.ht-api.initd
08486bf6bd4a9061a12cc62b5b010d5fde4269be2ea80895579a117bb6cfdf10dbb40536201d122596c94e189222c20df6127b586b75e0920e330004dcc7902c  todo.sr.ht.gunicorn.conf.py
"