~dricottone/huttese-apk

ref: 6b30e22fbbafb6a9ea852658829d4905c5184357 huttese-apk/sr.ht/man.sr.ht/APKBUILD -rw-r--r-- 1.1 KiB
6b30e22f — Drew DeVault Remove /usr/bin/ansi2html from py2-ansi2html 5 years ago
                                                                                
81b94065 Drew DeVault
d0ba3c65 Drew DeVault
81b94065 Drew DeVault
e8f92754 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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=man.sr.ht
pkgver=0.5.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
	redis
"
makedepends="py-setuptools nodejs sassc"
subpackages="${pkgname}-openrc"
source="
	$pkgname-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/$pkgname/archive/$pkgver.tar.gz
	man.sr.ht.init
"
builddir="$srcdir/$pkgname-$pkgver"
export PKGVER=$pkgver
options="$options !check"
install="$pkgname.post-install $pkgname.post-upgrade"

build() {
	cd "$builddir"
	python3 setup.py build
}

package() {
	cd "$builddir"
	python3 setup.py install --root="$pkgdir" --optimize=1
	install -Dm755 "$srcdir"/man.sr.ht.init "$pkgdir"/etc/init.d/man.sr.ht
}

sha512sums="65ba6ec47378ed521f6841fa0d5f0353368a81a61aa3ca12c4ac541bcbb99ce00ddda42a7d26466d9db479485c701e74763419deea0e644084c9990035d0b397  man.sr.ht-0.5.0.tar.xz
0b897087e3b1fd11093beef47f7c976e423e860da360549f11095f5c9dcf3de4e899082156d88f305e64670508e7f9e6a2919b404ede800c624dd89a8226ae63  man.sr.ht.init"