~dricottone/huttese-apk

ref: 8d6b388efba7f5a373e908869432c177f307982f huttese-apk/sr.ht/hub.sr.ht/APKBUILD -rw-r--r-- 1.7 KiB
8d6b388e — Drew DeVault meta.sr.ht: upgrade to 0.54.3 3 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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=hub.sr.ht
pkgver=0.13.1
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="a6678851956fb852671ac423b66b0c8ac9e88278a824179c4e6a0f3fa65a695e739ac5e1abd5c67fa2ae228e79a9df960bbec331eae12552c09b98854ecf181a  hub.sr.ht-0.13.1.tar.gz
0b2b6b2916799e20d05d6e35fdb20ac0cded65e254beb79a3aa91d4faa20fe6c93bd3e178acb2d2966841a7ce4f0149b0a863db1d57a36407ff85833779d3959  sr.ht-nginx-0.13.1.tar.gz
b120bdb3cc74a124259babf8b3f271fa74fbd4fac0dfd1a2a88b7e2311473f8509936019926d6770ca07b3cdd7cf37627c8f37a8f97790da56d2b33b2bf39dca  hub.sr.ht.initd
b7c6210b6893918ad655a709b39469607f3cff8d193948c1a74c6c364e9fb9dc3ed03d5ccb682b3b4581622988242f925977096a595e010ba4ef3afea0b6100e  hub.sr.ht.confd"