~dricottone/huttese-apk

ref: 564b9e5eb122b1a42763014089b06f4fa1e64e06 huttese-apk/sr.ht/hg.sr.ht/APKBUILD -rw-r--r-- 2.5 KiB
564b9e5e — Drew DeVault py3-stripe: upgrade to 2.61.0 3 years ago
                                                                                
e70a64ff Drew DeVault
e173e90c 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
e173e90c Drew DeVault
a054d553 Drew DeVault
e173e90c 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
67
68
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=hg.sr.ht
pkgver=0.27.6
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="
4d45cbbd2d9b6dc5f2d25fe8adba3f759a725a7055411c1286f7f344e047a97ac2c870c442e63c3f3e2b8d1b17f56a4d4ac56c0c6a954d1968613a249503162f  hg.sr.ht-0.27.6.tar.gz
4bc2435c8f67e44d3fdfa9ce2d1f15fbd0a45f066204e56fd5466084b78d12c2a88479d46bfffd185abe1d3a0302a46ce5e73d5e4da239e57707385e63e70b41  sr.ht-nginx-0.27.6.tar.gz
38923f14ca3cedf4004447ef5ab75d5699a858efdc22866f1da10a82c3a938227c03380b84fae719b84b4751f03fec55be922d950a155e09c7e8e41ff71b3c6b  hg.sr.ht.initd
2c3f1776f8bb6bb42f0d240b28561d0bfb1b4638cad169cd5162f9c227028d0d256fd510f8a47c9c0ec111d11e9f54c293fef6c3e3d99d925dcd170294f44472  hg.sr.ht.confd
93f25762da77462c8167ae53ba37ab4f9982c7f3c2d03dde445f0578758b808987c4781912a0fa5b4a4e25ba50c9d27477dfea8e319908ddc124dc836aefd2d6  hg.sr.ht-webhooks.initd
af5bb605d8ba2e848de5755c9c7f1607591068f6ac79ddc1d312873e92218c6b535eb4cbcf10590656239459b7808ba5469d52d32f80e8e2448fc18c22f7a70c  hg.sr.ht-webhooks.confd
"