~dricottone/huttese-apk

ref: 4fe7722f178c1f2948b7fdbbc94877dfe910aa91 huttese-apk/sr.ht/man.sr.ht/APKBUILD -rw-r--r-- 1.7 KiB
4fe7722f — Drew DeVault sr.ht-nginx: bump pkgrel 3 years ago
                                                                                
81b94065 Drew DeVault
28784e51 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
4d9c407a 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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=man.sr.ht
pkgver=0.15.0
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/conf.d/man.sr.ht.conf
}

sha512sums="befd10ddce4b6b421ff59e40d8d010f54923131e812cc713a6b9c0a80f439e7ea03455cbfd4645d9f1f79c00d00becd391ede911be61af1f78884962cb9df016  man.sr.ht-0.15.0.tar.gz
ef662f839e59bba208210737bf193b230e8e6accf1cda343f91d013b7922f5923f8468d0f18e16376cf6cb6b6c4f2e6a361f7f45fb1da9cc6e42ad045b0e25fc  sr.ht-nginx-0.15.0.tar.gz
ca32992f0778f6edf227de4520dd13fe0c3c4e4dd5be1043a5e5fb66f49392813a5bd0502e33b7c3f352cdcb12edc84e20faa2e376d33fe937a6b756e6e90033  man.sr.ht.initd
e8e3b1f8e3e6a132692774d141e79b9334714130371523bf43edadba0a580ce6003e7a7f5b23fb769d78c5951f6ac1f4097232c2764ed5988366ad80d1a85df7  man.sr.ht.confd"