~dricottone/huttese-apk

ref: 2e51bf9f8be592d4d0ce825584ad1e173dabb0a1 huttese-apk/sr.ht/hg.sr.ht/APKBUILD -rw-r--r-- 2.5 KiB
2e51bf9f — Drew DeVault git-send-email.io: ditch pystache 3 years ago
                                                                                
e70a64ff Drew DeVault
28c93838 Drew DeVault
e70a64ff Drew DeVault
12d1e40e Drew DeVault
edee8292 Drew DeVault
e70a64ff Drew DeVault
2b0623ee Ludovic Chabant
e70a64ff Drew DeVault
f83e5eb3 Denis Laxalde
e80e9a22 Drew DeVault
e70a64ff Drew DeVault
12d1e40e Drew DeVault
7f89568c 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
7f89568c Drew DeVault
e80e9a22 Drew DeVault
7f89568c Drew DeVault
5252462d Drew DeVault
7f89568c Drew DeVault
28c93838 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
58
59
60
61
62
63
64
65
66
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=hg.sr.ht
pkgver=0.27.4
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 $pkgname-nginx:_nginx:noarch"
source="
	$pkgname-$pkgver.tar.gz::https://hg.sr.ht/~sircmpwn/$pkgname/archive/$pkgver.tar.gz
	sr.ht-nginx-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/sr.ht-nginx/archive/master.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
}

_nginx() {
	depends="sr.ht-nginx"
	pkgdesc="nginx configuration for $pkgname"
	install -Dm644 "$srcdir/sr.ht-nginx-master/hg.sr.ht.conf" \
		"$subpkgdir"/etc/nginx/http.d/hg.sr.ht.conf
}

sha512sums="2cbd12835e3c1330fe244d7e8d91f95d3409a6060b593ddba41addf204c71f069233c6bbb79a65d7ae351564be4ad0373c7cf81dc1b718cc2b8f65a6e8dce0e0  hg.sr.ht-0.27.4.tar.gz
0b2b6b2916799e20d05d6e35fdb20ac0cded65e254beb79a3aa91d4faa20fe6c93bd3e178acb2d2966841a7ce4f0149b0a863db1d57a36407ff85833779d3959  sr.ht-nginx-0.27.4.tar.gz
38923f14ca3cedf4004447ef5ab75d5699a858efdc22866f1da10a82c3a938227c03380b84fae719b84b4751f03fec55be922d950a155e09c7e8e41ff71b3c6b  hg.sr.ht.initd
2c3f1776f8bb6bb42f0d240b28561d0bfb1b4638cad169cd5162f9c227028d0d256fd510f8a47c9c0ec111d11e9f54c293fef6c3e3d99d925dcd170294f44472  hg.sr.ht.confd
93f25762da77462c8167ae53ba37ab4f9982c7f3c2d03dde445f0578758b808987c4781912a0fa5b4a4e25ba50c9d27477dfea8e319908ddc124dc836aefd2d6  hg.sr.ht-webhooks.initd
af5bb605d8ba2e848de5755c9c7f1607591068f6ac79ddc1d312873e92218c6b535eb4cbcf10590656239459b7808ba5469d52d32f80e8e2448fc18c22f7a70c  hg.sr.ht-webhooks.confd"