# 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-alembic
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
3da58e6cb93e24e7ce2ceea9f6a739476dbd6bf5b07e203ce5f8302475bd0ab2697f497989bc915bb377aa1e7e4362c2312ba5e13ce47d817b1bffdb621bf3a5 man.sr.ht.init"