# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgbase=scm.sr.ht
pkgname=py3-scmsrht
pkgver=0.18.1
pkgrel=0
pkgdesc="sr.ht shared code"
url="https://git.sr.ht/~sircmpwn/scm.sr.ht"
arch="noarch"
license="BSD"
depends="
builds.sr.ht
py3-srht
"
makedepends="
py-setuptools
nodejs-npm
git
"
source="
$pkgbase-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/$pkgbase/archive/$pkgver.tar.gz
"
builddir="$srcdir/$pkgbase-$pkgver"
options="$options !check"
build() {
cd "$builddir"
export PKGVER=$pkgver
python3 setup.py build
}
package() {
cd "$builddir"
export PKGVER=$pkgver
python3 setup.py install --root="$pkgdir" --optimize=1
}
sha512sums="c1ded7c1be851f436efb793edf8b5e495da27c4c1f8b456b0744ffce29d9e5db220d445d58100310f95e9257b45af6f89ee670f232250031066946da789293f9 scm.sr.ht-0.18.1.tar.gz"