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
# 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"
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"