~dricottone/huttese-apk

ref: 6b7248ad72e4b2e9c5cbf7da8a8c7ec41d8edfba huttese-apk/sr.ht/hg.sr.ht/APKBUILD -rw-r--r-- 1.9 KiB
6b7248ad — Drew DeVault build.yml: prefer abuild -r over abuild -R 5 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
47
48
49
50
51
52
53
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=hg.sr.ht
pkgver=0.9.3
pkgrel=0
pkgdesc="sr.ht mercurial service"
url="https://hg.sr.ht/~sircmpwn/hg.sr.ht"
arch="noarch"
license="AGPLv3"
depends="
	py3-hglib
	py3-redis
	py3-scmsrht
	py3-unidiff
	hg-evolve
"
makedepends="py-setuptools nodejs sassc"
subpackages="${pkgname}-openrc"
source="
	$pkgname-$pkgver.tar.gz::https://hg.sr.ht/~sircmpwn/$pkgname/archive/$pkgver.tar.gz
	hg.sr.ht.initd
	hg.sr.ht.confd
	hg.sr.ht-webhooks.initd
	hg.sr.ht-webhooks.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
	mkdir -p "$pkgdir"/etc/init.d
	install -Dm755 "$srcdir"/hg.sr.ht.initd \
		"$pkgdir"/etc/init.d/hg.sr.ht
	install -Dm644 "$srcdir"/hg.sr.ht.confd \
		"$pkgdir"/etc/conf.d/hg.sr.ht
	install -Dm755 "$srcdir"/hg.sr.ht-webhooks.initd \
		"$pkgdir"/etc/init.d/hg.sr.ht-webhooks
	install -Dm644 "$srcdir"/hg.sr.ht-webhooks.confd \
		"$pkgdir"/etc/conf.d/hg.sr.ht-webhooks
}

sha512sums="afcb5db447a71cb187bc054b51defa11474cbce52aba75979b0a1c72ddbe51bbc25c1fedc4bb10676624193e9c59a895049a9232ce0a003336474f0267934549  hg.sr.ht-0.9.3.tar.gz
23478d5e0ea9bbc8e372e3921048f0d8ee93caa690f9692b19bcbc0c58d50212e855acdf2a79624603d38287314c6c36ba27e6310d36458d0e0327e6579cf70f  hg.sr.ht.initd
0a66de1b693f6abf7fbd3f566f8afaecaf2935c5d12e5105f2727c730b1ec4d3ef05a1f147ac245bf515a7aef47409564b441b77b94f51789f91c4c7e818b453  hg.sr.ht.confd
83b25d3c08bcd4a92e28e1d14365e94108a95ef1836bdb863d753d5fdd7410cd8cddff23430bcc8bac0f35c6618d1e64f3e8fd0677dc527bc7950c0fdd1ee938  hg.sr.ht-webhooks.initd
9708a018ab7ce31772aff489c57703614ae5f24021d23e440c2d256700e91a2b481d8070895b689ea690bf6e723e52c7aa823641505ab5871f0a321d998fc858  hg.sr.ht-webhooks.confd"