# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=paste.sr.ht
pkgver=0.1.1
pkgrel=0
pkgdesc="sr.ht paste service"
url="https://git.sr.ht/~sircmpwn/paste.sr.ht"
arch="noarch"
license="AGPLv3"
depends="
py3-gunicorn
py3-srht
"
makedepends="py-setuptools nodejs sassc"
subpackages="${pkgname}-openrc"
source="
$pkgname-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/$pkgname/archive/$pkgver.tar.gz
paste.sr.ht.init
"
builddir="$srcdir/$pkgname-$pkgver"
export PKGVER=$pkgver
options="$options !check"
install="$pkgname.post-install"
build() {
cd "$builddir"
python3 setup.py build
}
package() {
cd "$builddir"
python3 setup.py install --root="$pkgdir" --optimize=1
install -Dm755 "$srcdir"/paste.sr.ht.init "$pkgdir"/etc/init.d/paste.sr.ht
}
sha512sums="fdd7826c281e799c1e659821aeedb0837863af7188c532ff870a854a96ede1945aae62b4635687fb3f041f33850e9b87423a077ef33720ef3aae9c82516cc854 paste.sr.ht-0.1.1.tar.gz
36c2280f76af770ac963916fadcdb9a01976ceb0215f324f14fc56207bf5d07305059b7a6ff07c16886f9139591a36399f5bebb1670ffe719519a30c1c9e5177 paste.sr.ht.init"