~dricottone/huttese-apk

ref: 40eb9bc5f012b9060f3b9d34c78b6eda60061d60 huttese-apk/sr.ht/meta.sr.ht/APKBUILD -rw-r--r-- 1.3 KiB
40eb9bc5 — Drew DeVault Update py3-srht upstream URL 6 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=meta.sr.ht
pkgver=0.6.2
pkgrel=0
pkgdesc="sr.ht account service"
url="https://git.sr.ht/~sircmpwn/meta.sr.ht"
arch="noarch"
license="AGPLv3"
depends="
	py3-srht
	py3-pgpy
	py3-sshpubkeys
	py3-pystache
	py3-pyotp
	py3-qrcode
	py3-gunicorn
	py3-alembic
	py3-redis
	redis
"
makedepends="py-setuptools nodejs sassc"
source="
	http://git.sr.ht/~sircmpwn/$pkgname/snapshot/$pkgname-$pkgver.tar.xz
	meta.sr.ht.initrd
"
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"/meta.sr.ht.initrd "$pkgdir"/etc/init.d/meta.sr.ht
	mkdir -p "$pkgdir"/etc/sr.ht "$pkgdir"/etc/sr.ht/alembic/
	install -Dm644 config.ini.example "$pkgdir"/etc/sr.ht/meta.ini
	install -Dm644 alembic.ini.example "$pkgdir"/etc/sr.ht/alembic/meta.ini
}

sha512sums="2954be059b33e89923fa8a758d3672f97a2d119c1add92b5ca21f06818c06a1cc4dc2e008ff07f2feee53631ae4fb62dae2e4b4c7f27218cb85c80422db103e3  meta.sr.ht-0.6.2.tar.xz
c149ba165ce153a13f55ce4b46427e6a7f7dc97ce7bbd776e6d56255b90edb52cc02f80c83e59dd11a67efd1ef0fe9e2a2812ca171d215df15513a1ca60ba597  meta.sr.ht.initrd"