~dricottone/huttese-apk

ref: 4928e1343fe5157ca1202ed0e1d1594dfa53cd80 huttese-apk/sr.ht/git.sr.ht/APKBUILD -rw-r--r-- 3.4 KiB
4928e134 — Drew DeVault git.sr.ht: update go build approach 2 years ago
                                                                                
0525f623 Drew DeVault
89791a18 Ignas Kiela
0525f623 Drew DeVault
6c9d9861 Drew DeVault
0525f623 Drew DeVault
81ab56f5 Drew DeVault
fd7cbf06 Drew DeVault
81ab56f5 Drew DeVault
d320844e наб
0525f623 Drew DeVault
ea275e1f Drew DeVault
749262f2 Drew DeVault
0525f623 Drew DeVault
ff4e086d Drew DeVault
e4595be5 Drew DeVault
51e82ccf Drew DeVault
10a363b0 Drew DeVault
51e82ccf Drew DeVault
89791a18 Ignas Kiela
0525f623 Drew DeVault
4928e134 Drew DeVault
0525f623 Drew DeVault
1656619a Drew DeVault
51e82ccf Drew DeVault
10a363b0 Drew DeVault
51e82ccf Drew DeVault
89791a18 Ignas Kiela
10a363b0 Drew DeVault
4928e134 Drew DeVault
0525f623 Drew DeVault
e4595be5 Drew DeVault
749262f2 Drew DeVault
e4595be5 Drew DeVault
5252462d Drew DeVault
e4595be5 Drew DeVault
8c448005 Drew DeVault
89791a18 Ignas Kiela
56ecf6e9 Drew DeVault
e4595be5 Drew DeVault
56ecf6e9 Drew DeVault
8c448005 Drew DeVault
89791a18 Ignas Kiela
8c448005 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
69
70
71
72
73
74
75
76
77
78
79
80
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=git.sr.ht
pkgver=0.75.1
pkgrel=0
pkgdesc="sr.ht git service"
url="https://git.sr.ht/~sircmpwn/git.sr.ht"
arch="all"
license="AGPLv3"
depends="
	py3-minio
	py3-pygit2
	py3-redis
	py3-scmsrht
	git
"
makedepends="py-setuptools nodejs sassc go"
subpackages="$pkgname-openrc $pkgname-nginx:_nginx:noarch"
source="
	$pkgname-$pkgver.tar.gz::https://git.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
	git.sr.ht.initd
	git.sr.ht.confd
	git.sr.ht-api.initd
	git.sr.ht-api.confd
	git.sr.ht-webhooks.initd
	git.sr.ht-webhooks.confd
	git.sr.ht.gunicorn.conf.py
"
export PKGVER=$pkgver
options="$options !check"
install="$pkgname.post-install $pkgname.post-upgrade"

build() {
	python3 setup.py build
	make
}

package() {
	python3 setup.py install --root="$pkgdir" --optimize=1
	mkdir -p "$pkgdir"/etc/init.d
	install -Dm755 "$srcdir"/git.sr.ht.initd \
		"$pkgdir"/etc/init.d/git.sr.ht
	install -Dm644 "$srcdir"/git.sr.ht.confd \
		"$pkgdir"/etc/conf.d/git.sr.ht
	install -Dm755 "$srcdir"/git.sr.ht-api.initd \
		"$pkgdir"/etc/init.d/git.sr.ht-api
	install -Dm644 "$srcdir"/git.sr.ht-api.confd \
		"$pkgdir"/etc/conf.d/git.sr.ht-api
	install -Dm755 "$srcdir"/git.sr.ht-webhooks.initd \
		"$pkgdir"/etc/init.d/git.sr.ht-webhooks
	install -Dm644 "$srcdir"/git.sr.ht-webhooks.confd \
		"$pkgdir"/etc/conf.d/git.sr.ht-webhooks
	install -Dm644 "$srcdir"/git.sr.ht.gunicorn.conf.py \
		"$pkgdir"/etc/sr.ht/git.sr.ht.gunicorn.conf.py

	install -Dm755 gitsrht-dispatch/gitsrht-dispatch "$pkgdir"/usr/bin/gitsrht-dispatch
	install -Dm755 gitsrht-shell/gitsrht-shell "$pkgdir"/usr/bin/gitsrht-shell
	install -Dm755 gitsrht-keys/gitsrht-keys "$pkgdir"/usr/bin/gitsrht-keys
	install -Dm755 gitsrht-update-hook/gitsrht-update-hook "$pkgdir"/usr/bin/gitsrht-update-hook
	install -Dm755 api/api "$pkgdir"/usr/bin/gitsrht-api
}

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

sha512sums="
bef609483179a366cd4d467b07f8b4419a11a1c49d32beafc30245bf9cdab4ef65960cb462f7a47b43a1976186dac43d755395d1fe4c0e008541e51a0b5c8795  git.sr.ht-0.75.1.tar.gz
917bbc9a493f6aa756af3f3597f9edf2e25227efe30f6ab635f99a7d9f4ecd6e9f36a7f2b9b40cc95b6e584dd62e1a0badb46e4ff9d3c3d5ce959455b15a95b6  sr.ht-nginx-0.75.1.tar.gz
bab6312b5a6d1bd9808cb6eae2b33f1fc4f544ac286ce9a67f4c07fc8d4679dc81d93f3d1ec7f8adad3dedead9203b5d10ab63aff478fb11780790e7a01a232a  git.sr.ht.initd
7462f15928aa24b10e63041b0021aa5a69fa92d071f497d6b1dc353dac3bff30818cb560c6011effbd619d450e8b8c6f8f3ab07a1df9714ea79b00e4d12dcf44  git.sr.ht.confd
370a9f710704d7dfe88632f0ae2b7d2b406621322cab1f87f4f4c3984c741fba616f9c2a806d83e79250dc58aba89161a2db8ca424794dbd2cacbffb6e1a9adb  git.sr.ht-api.initd
938a8aefdea3e4c6a9b15ac1c10d789282443c5b6cd1fee662d86af261cf69d8b67435f3bcececcd64544bd147addbd2792fcdbf67b9a36975e0e5e00f337719  git.sr.ht-api.confd
4038c7375d50ab393d076d31d776e82a2fcd54d6edcd55eb864fcc8d7254646799b4ee05a2e1f75f3a79e660e802a0fa05d9e34c16870aebe33dbf8191ed386a  git.sr.ht-webhooks.initd
acd385323da772e1163b690eafca3b3a59e13bf236bb279c08a383a9ab2b356b4f1b7dce18f235882ba79c8ac35a6fa7594aad260962b38f7df70886e4fcace5  git.sr.ht-webhooks.confd
21f39ea0981d7773eb512e5ba234022364d0f7ee9b6ca897ce4c51e3b127eb2d9a7a5fbcaa06d14f20b2df2439421d7261f200e3f4f13b45a91e78ba77bc363c  git.sr.ht.gunicorn.conf.py
"