~dricottone/huttese-apk

ref: 9143a7cdf0d9eb9185fa0bd3d2b9eac8e0621026 huttese-apk/sr.ht/hg.sr.ht/APKBUILD -rw-r--r-- 2.1 KiB
9143a7cd — Ludovic Chabant Deploy hg.sr.ht's partial config files 4 years ago
                                                                                
e70a64ff Drew DeVault
9143a7cd Ludovic Chabant
e70a64ff Drew DeVault
12d1e40e Drew DeVault
edee8292 Drew DeVault
e70a64ff Drew DeVault
2b0623ee Ludovic Chabant
e70a64ff Drew DeVault
f83e5eb3 Denis Laxalde
e70a64ff Drew DeVault
12d1e40e Drew DeVault
e70a64ff Drew DeVault
f83e5eb3 Denis Laxalde
e70a64ff Drew DeVault
12d1e40e Drew DeVault
f83e5eb3 Denis Laxalde
9143a7cd Ludovic Chabant
e70a64ff Drew DeVault
9143a7cd Ludovic Chabant
12d1e40e Drew DeVault
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
54
55
56
57
58
59
60
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=hg.sr.ht
pkgver=0.23.0
pkgrel=0
pkgdesc="sr.ht mercurial service"
url="https://hg.sr.ht/~sircmpwn/hg.sr.ht"
arch="all"
license="AGPLv3"
depends="
	py3-hglib
	py3-redis
	py3-scmsrht
	py3-unidiff
	hg-evolve
"
makedepends="py-setuptools nodejs sassc go"
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
	cd hgsrht-keys
	go 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
	cd hgsrht-keys
	install -Dm755 hgsrht-keys "$pkgdir"/usr/bin/hgsrht-keys
	cd ../hgsrht/hgrcs
	install -Dm644 global.cfg "$pkgdir"/etc/sr.ht/hgrcs/global.cfg
	install -Dm644 nonpublishing.cfg "$pkgdir"/etc/sr.ht/hgrcs/nonpublishing.cfg
}

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