# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=builds.sr.ht
pkgver=0.4.6
pkgrel=1
pkgdesc="sr.ht build service"
url="https://git.sr.ht/~sircmpwn/builds.sr.ht"
arch="noarch"
license="AGPLv3"
depends="
py3-srht
py3-pgpy
py3-celery
py3-redis
py3-yaml
py3-markdown
py3-bleach
"
makedepends="py-setuptools nodejs sassc"
subpackages="$pkgname-images"
source="http://git.sr.ht/~sircmpwn/$pkgname/snapshot/$pkgname-$pkgver.tar.xz"
builddir="$srcdir/$pkgname-$pkgver"
export PKGVER=$pkgver
build() {
cd "$builddir"
python3 setup.py build
}
package() {
cd "$builddir"
python3 setup.py install --root="$pkgdir" --optimize=1
}
images() {
cd "$builddir"
mkdir -p "$subpkgdir"/var/lib/
cp -R images "$subpkgdir"/var/lib/
}
sha512sums="9eab18643eec0f282a564c2d49b96f184719707d35df5cc4fdced0c8157a9004a95dc0e878f989a1f9eaadd3171316d566b957f53206ddc837965d3c8242994d builds.sr.ht-0.4.6.tar.xz"