~dricottone/huttese-apk

ref: a054d553c63ccc384a0de3e0eb4bc35f507e357e huttese-apk/sr.ht/hg.sr.ht/APKBUILD -rw-r--r-- 2.1 KiB
a054d553 — Drew DeVault hg.sr.ht: overhaul init files 4 years ago
                                                                                
e70a64ff Drew DeVault
a054d553 Drew DeVault
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
a054d553 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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=hg.sr.ht
pkgver=0.26.10
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
"
export PKGVER=$pkgver
options="$options !check"
install="$pkgname.post-install $pkgname.post-upgrade"

build() {
	python3 setup.py build
	cd hgsrht-keys
	go build
}

package() {
	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="3a7dcccead80ff9cd7586f0a2051e7105bde9e3a8e8b1750d476ac73f62ce60a45a2f634d65681ed4fc0875dc144545690bd2add5fbe2de80f04955420426b21  hg.sr.ht-0.26.10.tar.gz
38923f14ca3cedf4004447ef5ab75d5699a858efdc22866f1da10a82c3a938227c03380b84fae719b84b4751f03fec55be922d950a155e09c7e8e41ff71b3c6b  hg.sr.ht.initd
2c3f1776f8bb6bb42f0d240b28561d0bfb1b4638cad169cd5162f9c227028d0d256fd510f8a47c9c0ec111d11e9f54c293fef6c3e3d99d925dcd170294f44472  hg.sr.ht.confd
93f25762da77462c8167ae53ba37ab4f9982c7f3c2d03dde445f0578758b808987c4781912a0fa5b4a4e25ba50c9d27477dfea8e319908ddc124dc836aefd2d6  hg.sr.ht-webhooks.initd
af5bb605d8ba2e848de5755c9c7f1607591068f6ac79ddc1d312873e92218c6b535eb4cbcf10590656239459b7808ba5469d52d32f80e8e2448fc18c22f7a70c  hg.sr.ht-webhooks.confd"