~dricottone/huttese-apk

ref: 7d0d8ef40252e13c95f66c87da788863ddf2f47c huttese-apk/sr.ht/todo.sr.ht/APKBUILD -rw-r--r-- 3.4 KiB
7d0d8ef4 — Drew DeVault py3-weasyprint: upgrade to 53.4 3 years ago
                                                                                
f26e327f Drew DeVault
1811c91b Drew DeVault
f26e327f Drew DeVault
2236dcc2 Drew DeVault
f26e327f Drew DeVault
05e3f0dc Drew DeVault
1be721e5 Drew DeVault
f26e327f Drew DeVault
d457da27 Drew DeVault
38f92e5a Drew DeVault
f26e327f Drew DeVault
047dbf0e Drew DeVault
38f92e5a Drew DeVault
74654db4 Drew DeVault
f6ed7f52 Drew DeVault
98bc0c3b Drew DeVault
ba4d7356 Drew DeVault
f26e327f Drew DeVault
820995e5 Drew DeVault
f26e327f Drew DeVault
820995e5 Drew DeVault
74654db4 Drew DeVault
f6ed7f52 Drew DeVault
98bc0c3b Drew DeVault
ba4d7356 Drew DeVault
f26e327f Drew DeVault
38f92e5a Drew DeVault
8834ab51 Drew DeVault
38f92e5a Drew DeVault
5252462d Drew DeVault
38f92e5a Drew DeVault
1811c91b Drew DeVault
188b09cb Drew DeVault
38f92e5a Drew DeVault
188b09cb Drew DeVault
38f92e5a Drew DeVault
ba4d7356 Drew DeVault
1811c91b Drew DeVault
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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=todo.sr.ht
pkgver=0.64.23
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
"
export PKGVER=$pkgver
options="$options !check"
install="$pkgname.post-install $pkgname.post-upgrade"

build() {
	python3 setup.py build
	cd api
	go build -o todosrht-api
}

package() {
	python3 setup.py install --root="$pkgdir" --optimize=1

	cd api
	install -Dm755 todosrht-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
}

_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="
a1292d18b5bfadcd545ffb46a2c9ed98703c1cc5a3c5cdb8bb08f404b7b2315594e35f28111927881fe4e248a6ac8dae0b0d3282020060dcf8b90caaae96e762  todo.sr.ht-0.64.23.tar.gz
4bc2435c8f67e44d3fdfa9ce2d1f15fbd0a45f066204e56fd5466084b78d12c2a88479d46bfffd185abe1d3a0302a46ce5e73d5e4da239e57707385e63e70b41  sr.ht-nginx-0.64.23.tar.gz
9f0c7284e7dd21156efdbad8074651c643ed6eb8aaca70d44fdfc652726930f8f1036d7f5d55f64bfb09e220e9c4d8e17b0abb54793daae44716deea6d122145  todo.sr.ht.initd
a4ab31da9633228e14a3baedaa0a257100d2758d5feaeb655a1647fd5a08b5a8a2c7af560d3d3af0956b66e6fbb8cba1fc7c46929eb78c45d81e881ef6d6c6c1  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
"