~dricottone/huttese-apk

ref: d6c17734bc3830c596b1825b17204869e263d825 huttese-apk/sr.ht/todo.sr.ht/APKBUILD -rw-r--r-- 2.4 KiB
d6c17734 — Drew DeVault py3-unidiff: upgrade to 0.6.0 4 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
54
55
56
57
58
59
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=todo.sr.ht
pkgver=0.42.0
pkgrel=0
pkgdesc="sr.ht ticket tracking service"
url="https://git.sr.ht/~sircmpwn/todo.sr.ht"
arch="noarch"
license="AGPLv3"
depends="
	py3-aiosmtpd
	py3-gunicorn
	py3-pystache
	py3-srht
"
makedepends="py-setuptools nodejs sassc"
subpackages="${pkgname}-openrc"
source="
	$pkgname-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/$pkgname/archive/$pkgver.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
"
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"/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
}

sha512sums="2596b97f9d2344d5eb5d260b7615784e23ed605c497f8677285bffb525880152c647339d87172df469055e23300ff959cc1e2cc6623a33cb92836e5019da9ddc  todo.sr.ht-0.42.0.tar.gz
05c613adce3b08bbfd9af839e01282eb71dc679bf059c43f94c8122179ffd374a0bb3947cdd2b8ff21503493f413d7199801ac1f065afe731cfde2d4d7a64255  todo.sr.ht.initd
a136bda51bef167c90d0c07f158eb24f0e769b5020723cd4ffe49854080540f1e6ac92dbeec469ad124253603dd6f9484c9b7c69c5d406bb1b72e686e775a147  todo.sr.ht.confd
a35ea2c01e06d37d2452af8245b5ecf5a1c09688472a1efdec31a9ee63eb24f7972ecdd3055147841213e0382dafebd9b8ebc0dfdbca11ef929f507638791c68  todo.sr.ht-lmtp.initd
da5ba92a1e3f49850dbaf6eb98e8eb30baf9c7ebd63e493f1b1b2e5f5c05599710daa998ee070b340f125ec9897fad55b47dad0ad3aca83d1a05d70537f607a2  todo.sr.ht-lmtp.confd
2188b57950d9753b7192945a46c8269b5ff7015fbafd55e4539d7499bd2bd278062ec48fd86fe65d17db78131b013d649204cb23c341b14539fc7d5bebc9a40e  todo.sr.ht-webhooks.confd
60590361e716e8b932620da02ca83827715c1b38a14f36a867bb93a7265f368586dad5b9e4284e0c1a6700cc2b9366539254708516e7e03d445b1cf318942ead  todo.sr.ht-webhooks.initd"