~dricottone/huttese-apk

ref: aafbd1fff235fb0652c039ea75c386bf70a5dc05 huttese-apk/sr.ht/hub.sr.ht/APKBUILD -rw-r--r-- 2.0 KiB
aafbd1ff — Drew DeVault py3-iso3166: upgrade to 2.0.2 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
51
52
53
54
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=hub.sr.ht
pkgver=0.14.2
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
	hub.sr.ht.gunicorn.conf.py
"
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
	install -Dm644 "$srcdir"/hub.sr.ht.gunicorn.conf.py \
		"$pkgdir"/etc/sr.ht/hub.sr.ht.gunicorn.conf.py
}

_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="
7c8b949e7ff9e2678b18a3017e780ecbf25939d7d02452e24c1db3fb6939fc7d1cc2abf2562cf6695ba24929250f24ab70f0387617e83720292fe5b9ef66dab5  hub.sr.ht-0.14.2.tar.gz
917bbc9a493f6aa756af3f3597f9edf2e25227efe30f6ab635f99a7d9f4ecd6e9f36a7f2b9b40cc95b6e584dd62e1a0badb46e4ff9d3c3d5ce959455b15a95b6  sr.ht-nginx-0.14.2.tar.gz
e82162ed183905bdbc55676624983dbccb5f0a542024f3d88c670c69cf3f19447890ef8e4b3fbfd859ccb58caaa4196bdfad056d99a493fe2c23fddc3d99137d  hub.sr.ht.initd
657499dc280ca355704f704f183ad6097753fef02e5742014370e3f09d0d7c56966d3015022c54dcaad680ebc940c53c9f670b8488fb76e964ba5a89e60fa1aa  hub.sr.ht.confd
21f39ea0981d7773eb512e5ba234022364d0f7ee9b6ca897ce4c51e3b127eb2d9a7a5fbcaa06d14f20b2df2439421d7261f200e3f4f13b45a91e78ba77bc363c  hub.sr.ht.gunicorn.conf.py
"