~sircmpwn/sr.ht-pkgbuilds

ref: 2faa45db0b8d36a62aea5ec7ea713948ed6a5b2d sr.ht-pkgbuilds/todo.sr.ht/PKGBUILD -rw-r--r-- 1.3 KiB
2faa45dbThorben Günther Celery: Update loglevel 8 months 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
pkgname=todo.sr.ht
pkgver=0.30.5
pkgrel=3
pkgdesc="sr.ht ticket tracking service"
arch=("any")
license=("AGPL3")
url="https://git.sr.ht/~sircmpwn/todo.sr.ht"
depends=(
	"python-srht"
	"gunicorn"
)
install=todo.sr.ht.install
makedepends=("python-setuptools" "nodejs" "sassc")
source=(
	"$pkgname-$pkgver.tar.gz::http://git.sr.ht/~sircmpwn/$pkgname/archive/$pkgver.tar.gz"
	"todo.sr.ht.service"
	"todo.sr.ht-lmtp.service"
	"todo.sr.ht-webhooks.service"
	"sysusers.conf"
)
sha256sums=('c0548717813947eb29b0645236735a869b8c8a2997ea87e7ac59fc4e0b5f210d'
            '6c373a2df95e6062efd167de75b1d58af980a509a50b71507d07120c6b9358b2'
            '79ae025c6c4f40b8fda2444668704842c90348f42c291232296f6d0368e99b32'
            'fd00e7e8664f4ef42c5d51117ae62dd8cfa7286754cd1c7334238ff53d69379d'
            'f9b1dbca0557b7b24654dcb0d7e7d990675ce251a3d2f380d87eb1d3aca93821')
export PKGVER=$pkgver

build() {
	cd $pkgbase-$pkgver
	python3 setup.py build
}

package() {
	cd $pkgbase-$pkgver
	install -Dm0644 ../todo.sr.ht.service -t "$pkgdir"/usr/lib/systemd/system/
	install -Dm0644 ../todo.sr.ht-lmtp.service -t "$pkgdir"/usr/lib/systemd/system/
	install -Dm0644 ../todo.sr.ht-webhooks.service -t "$pkgdir"/usr/lib/systemd/system/
	install -Dm0644 ../sysusers.conf "$pkgdir/usr/lib/sysusers.d/todo.sr.ht.conf"
	python3 setup.py install --root="${pkgdir}" --optimize=1
}