~dricottone/huttese-apk

ref: 43ed4937575f7cf0b2cfb7498df5fcb080d931aa huttese-apk/sr.ht/hub.sr.ht/APKBUILD -rw-r--r-- 1.3 KiB
43ed4937 — Drew DeVault py3-vine: bump pkgrel 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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=hub.sr.ht
pkgver=0.1.0
pkgrel=0
pkgdesc="sr.ht hub service"
url="https://git.sr.ht/~sircmpwn/hub.sr.ht"
arch="noarch"
license="AGPLv3"
depends="
	py3-srht
	py3-gunicorn
"
makedepends="py-setuptools nodejs sassc go"
subpackages="${pkgname}-openrc"
source="
	$pkgname-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/$pkgname/archive/$pkgver.tar.gz
	hub.sr.ht.initd
	hub.sr.ht.confd
"
builddir="$srcdir/$pkgname-$pkgver"
export PKGVER=$pkgver
options="$options !check"
install="$pkgname.post-install"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --root="$pkgdir" --optimize=1
	mkdir -p "$pkgdir"/etc/init.d
	install -Dm755 "$srcdir"/hub.sr.ht.initd \
		"$pkgdir"/etc/init.d/hub.sr.ht
	install -Dm644 "$srcdir"/hub.sr.ht.confd \
		"$pkgdir"/etc/conf.d/hub.sr.ht
}

sha512sums="b7228ea201ca911626c484af55e9ca300652366d8f7bfa9d0bb9af1a63d0c7f78c7b849a562f69d6117b63cca5ad074a109a83f249c748d9e2ae24b65ab8613b  hub.sr.ht-0.1.0.tar.gz
49b89a85f8a72cfded331bff5fd4891ee2f5b930d01334a63d04fc3cc4974d2595c78e38afa2b66ed49b9704adcb7dfa9bd95e6c1c502e11e7e141bbb1fb0c3c  hub.sr.ht.initd
2edd92290b68b5f2a18e3ba24d63ec673aec16f38c020c1f627dc5d92cfa746d14acc4191f33b27cc471e772520e5a5da23e503d64a8f4ad6357fc9f44d15bb2  hub.sr.ht.confd"