~dricottone/huttese-apk

ref: e03b8eab755a8fe00cafa6e4f709be576ce9676e huttese-apk/sr.ht/man.sr.ht/APKBUILD -rw-r--r-- 1.3 KiB
e03b8eab — Drew DeVault sr.ht/git-send-email.io: update to 0.1.9 4 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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=man.sr.ht
pkgver=0.9.1
pkgrel=0
pkgdesc="sr.ht wiki service"
url="https://git.sr.ht/~sircmpwn/man.sr.ht"
arch="noarch"
license="AGPLv3"
depends="
	py3-gunicorn
	py3-pygit2
	py3-srht
	py3-yaml
	redis
"
makedepends="py-setuptools nodejs sassc"
subpackages="${pkgname}-openrc"
source="
	$pkgname-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/$pkgname/archive/$pkgver.tar.gz
	man.sr.ht.initd
	man.sr.ht.confd
"
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"/man.sr.ht.initd \
		"$pkgdir"/etc/init.d/man.sr.ht
	install -Dm644 "$srcdir"/man.sr.ht.confd \
		"$pkgdir"/etc/conf.d/man.sr.ht
}

sha512sums="73ebf55b42ab5ce0e4dff3e73f1d858b2b2829f52e78c36b19418c12cd235c83b2c33594571c9aa53d9e6b0201f37c3e07832cffc5b700640bf3f75c4b9909ac  man.sr.ht-0.9.1.tar.gz
fe5ad8aee48f0394caf3f77bf79b0356b1b29b18d00a981fef97a3913f1956f8e31cf18b3b0e8c98c04307e053e2bdaed5b48946f97199b2ced0e7815c8e47d9  man.sr.ht.initd
6f12f67a857b2839ea590ba27e165bb5b436ce3dc4ee8ae5a67edc83ba4b9175bcc192c7c36e55c68449e4b07cc92444f0a6ce586cad55934f6e4bceee0b7c17  man.sr.ht.confd"