~dricottone/huttese-apk

ref: cdb66112c8dd72eb63e3d60c3345b749e21af5e4 huttese-apk/sr.ht/hub.sr.ht/APKBUILD -rw-r--r-- 1.7 KiB
cdb66112 — Galen Abell builds.sr.ht: Add missing initd dependencies 2 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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=hub.sr.ht
pkgver=0.13.5
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 $pkgname-nginx:_nginx:noarch"
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
	hub.sr.ht.initd
	hub.sr.ht.confd
"
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
}

_nginx() {
	depends="sr.ht-nginx"
	pkgdesc="nginx configuration for $pkgname"
	install -Dm644 "$srcdir/sr.ht-nginx-master/hub.sr.ht.conf" \
		"$subpkgdir"/etc/nginx/http.d/hub.sr.ht.conf
}

sha512sums="
38652c83b18843dfee4d752ed4fcf5624993b3cfdf20be0e63521b4153b5b30fb3d06494df185d4bf43f86a3e7a0a5eed687d8fff83abd6e87d4a1a5bb7de8ed  hub.sr.ht-0.13.5.tar.gz
4bc2435c8f67e44d3fdfa9ce2d1f15fbd0a45f066204e56fd5466084b78d12c2a88479d46bfffd185abe1d3a0302a46ce5e73d5e4da239e57707385e63e70b41  sr.ht-nginx-0.13.5.tar.gz
b120bdb3cc74a124259babf8b3f271fa74fbd4fac0dfd1a2a88b7e2311473f8509936019926d6770ca07b3cdd7cf37627c8f37a8f97790da56d2b33b2bf39dca  hub.sr.ht.initd
b7c6210b6893918ad655a709b39469607f3cff8d193948c1a74c6c364e9fb9dc3ed03d5ccb682b3b4581622988242f925977096a595e010ba4ef3afea0b6100e  hub.sr.ht.confd
"