~dricottone/huttese-apk

b19fb0365eeb8e04a1a7825f256035faf4e77994 — Drew DeVault 7 years ago 129e647
Add python-srht
1 files changed, 46 insertions(+), 0 deletions(-)

A py3-srht/APKBUILD
A py3-srht/APKBUILD => py3-srht/APKBUILD +46 -0
@@ 0,0 1,46 @@
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgbase=srht
pkgname=py3-srht
pkgver=0.10.2
pkgrel=1
pkgdesc="sr.ht shared code"
url="https://git.sr.ht/~sircmpwn/srht"
arch="all"
license="BSD"
depends="
	py3-flask
	py3-humanize
	py3-sqlalchemy
	py3-sqlalchemy-utils
	py3-bleach
	py3-markdown
	py3-requests
	nodejs
"
makedepends="
	py-setuptools
	nodejs-npm
	git
"
source="http://git.sr.ht/~sircmpwn/$pkgbase/snapshot/$pkgbase-$pkgver.tar.xz"
builddir="$srcdir/$pkgbase-$pkgver"

prepare() {
	default_prepare
	cd "$builddir"
	git clone -b v4.0.0-alpha.6 git://github.com/twbs/bootstrap
}

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="9128a378264980aca13b11c20a6a884658f574dd26beebbe5b6a3cf135e10f407f27374c633d0a6f5cec067061351a6e808590e68255bae69f365edb91c71bab  srht-0.10.2.tar.xz"