~dricottone/huttese-apk

ref: 4800997b88a804765fe828d6bf1b2bd4ae1ec7fe huttese-apk/sr.ht/man.sr.ht/APKBUILD -rw-r--r-- 1.7 KiB
4800997b — Simon Ser gamja: upgrade to 1.0.0_beta1-r10 3 years ago
                                                                                
81b94065 Drew DeVault
e8fc435b Drew DeVault
81b94065 Drew DeVault
116c827c Drew DeVault
1222dfd3 Drew DeVault
81b94065 Drew DeVault
28784e51 Drew DeVault
81b94065 Drew DeVault
28784e51 Drew DeVault
d551c20c Drew DeVault
81b94065 Drew DeVault
d551c20c Drew DeVault
81b94065 Drew DeVault
28784e51 Drew DeVault
f6b3c2ae Drew DeVault
28784e51 Drew DeVault
5252462d Drew DeVault
28784e51 Drew DeVault
e8fc435b Drew DeVault
4d9c407a Drew DeVault
e8fc435b Drew DeVault
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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=man.sr.ht
pkgver=0.15.18
pkgrel=0
pkgdesc="sr.ht wiki service"
url="https://git.sr.ht/~sircmpwn/man.sr.ht"
arch="noarch"
license="AGPLv3"
depends="
	py3-gunicorn
	py3-pygit2
	py3-srht
	py3-scmsrht
	py3-yaml
	redis
"
makedepends="py-setuptools nodejs sassc"
subpackages="$pkgname-openrc $pkgname-nginx:_nginx"
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
	man.sr.ht.initd
	man.sr.ht.confd
"
export PKGVER=$pkgver
options="$options !check"
install="$pkgname.post-install $pkgname.post-upgrade"

build() {
	python3 setup.py build
}

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

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

sha512sums="
e05eb1562bd406b4c19be6214b3222d31718ff6a5eb03ef3cd54741bda3344692bff65047ef739517947e19199c7be81635ceca038a2f875bc6da838d8457d35  man.sr.ht-0.15.18.tar.gz
4bc2435c8f67e44d3fdfa9ce2d1f15fbd0a45f066204e56fd5466084b78d12c2a88479d46bfffd185abe1d3a0302a46ce5e73d5e4da239e57707385e63e70b41  sr.ht-nginx-0.15.18.tar.gz
ca32992f0778f6edf227de4520dd13fe0c3c4e4dd5be1043a5e5fb66f49392813a5bd0502e33b7c3f352cdcb12edc84e20faa2e376d33fe937a6b756e6e90033  man.sr.ht.initd
e8e3b1f8e3e6a132692774d141e79b9334714130371523bf43edadba0a580ce6003e7a7f5b23fb769d78c5951f6ac1f4097232c2764ed5988366ad80d1a85df7  man.sr.ht.confd
"