~dricottone/huttese-apk

ref: e173e90c3b0bab82889653f0369bd922a3a8526c huttese-apk/sr.ht/builds.sr.ht/APKBUILD -rw-r--r-- 3.1 KiB
e173e90c — Drew DeVault hg.sr.ht: upgrade to 0.27.6 3 years ago
                                                                                
2effb6a1 Drew DeVault
cee089c9 Drew DeVault
485a59b5 Drew DeVault
2effb6a1 Drew DeVault
b31ade21 Drew DeVault
2effb6a1 Drew DeVault
37d3f21f Drew DeVault
2effb6a1 Drew DeVault
73609379 Drew DeVault
f69104a9 Drew DeVault
73609379 Drew DeVault
2effb6a1 Drew DeVault
73609379 Drew DeVault
2effb6a1 Drew DeVault
ca184b10 Drew DeVault
0a8736be Drew DeVault
b31ade21 Drew DeVault
0a8736be Drew DeVault
fe728240 Drew DeVault
0a8736be Drew DeVault
57b6e806 Drew DeVault
ac849302 Drew DeVault
0a8736be Drew DeVault
c2fcbab4 Drew DeVault
1358d392 Drew DeVault
c2fcbab4 Drew DeVault
57b6e806 Drew DeVault
421d8231 Drew DeVault
2effb6a1 Drew DeVault
57b6e806 Drew DeVault
2effb6a1 Drew DeVault
ac849302 Drew DeVault
1358d392 Drew DeVault
2effb6a1 Drew DeVault
0bebfb7b Drew DeVault
2effb6a1 Drew DeVault
aecddcec Drew DeVault
c2fcbab4 Drew DeVault
9e01eb7a Drew DeVault
c2fcbab4 Drew DeVault
1358d392 Drew DeVault
2effb6a1 Drew DeVault
ac849302 Drew DeVault
0bebfb7b Drew DeVault
2effb6a1 Drew DeVault
ac849302 Drew DeVault
0bebfb7b Drew DeVault
1358d392 Drew DeVault
c2fcbab4 Drew DeVault
ac849302 Drew DeVault
c2fcbab4 Drew DeVault
ac849302 Drew DeVault
0a8736be Drew DeVault
fe728240 Drew DeVault
0a8736be Drew DeVault
5252462d Drew DeVault
0a8736be Drew DeVault
cee089c9 Drew DeVault
485a59b5 Drew DeVault
c2fcbab4 Drew DeVault
e9658fa7 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=builds.sr.ht
pkgver=0.66.4
pkgrel=0
pkgdesc="sr.ht build service"
url="https://git.sr.ht/~sircmpwn/builds.sr.ht"
arch="all"
license="AGPLv3"
depends="
	py3-ansi2html
	py3-celery
	py3-gunicorn
	py3-lxml
	py3-pgpy
	py3-redis
	py3-srht
	py3-yaml
"
makedepends="py-setuptools nodejs sassc go"
subpackages="
	$pkgname-images:_images
	$pkgname-worker:_worker
	$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
	builds.sr.ht.confd
	builds.sr.ht.initd
	builds.sr.ht-api.confd
	builds.sr.ht-api.initd
	builds.sr.ht-worker.confd
	builds.sr.ht-worker.initd
"
install="$pkgname.pre-install $pkgname.post-upgrade"
builddir="$srcdir/$pkgname-$pkgver"
export PKGVER=$pkgver
options="$options !check"

build() {
	python3 setup.py build
	cd worker
	go build
	cd ../api
	go build
}

package() {
	cd "$builddir"
	python3 setup.py install --root="$pkgdir" --optimize=1
	install -Dm755 api/api "$pkgdir"/usr/bin/buildssrht-api
	install -Dm755 "$srcdir"/builds.sr.ht.initd \
		"$pkgdir"/etc/init.d/builds.sr.ht
	install -Dm644 "$srcdir"/builds.sr.ht.confd \
		"$pkgdir"/etc/conf.d/builds.sr.ht
	install -Dm755 "$srcdir"/builds.sr.ht-api.initd \
		"$pkgdir"/etc/init.d/builds.sr.ht-api
	install -Dm644 "$srcdir"/builds.sr.ht-api.confd \
		"$pkgdir"/etc/conf.d/builds.sr.ht-api
}

_images() {
	depends="builds.sr.ht"
	pkgdesc="builds.sr.ht build images"
	cd "$builddir"
	mkdir -p "$subpkgdir"/var/lib/
	cp -R images "$subpkgdir"/var/lib/
}

_worker() {
	depends="builds.sr.ht-images"
	pkgdesc="builds.sr.ht build worker"
	cd "$builddir"
	install -Dm755 worker/worker "$subpkgdir"/usr/bin/builds.sr.ht-worker
	install -Dm755 "$srcdir"/builds.sr.ht-worker.initd \
		"$subpkgdir"/etc/init.d/builds.sr.ht-worker
	install -Dm644 "$srcdir"/builds.sr.ht-worker.confd \
		"$subpkgdir"/etc/conf.d/builds.sr.ht-worker
}

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

sha512sums="68e2ebdbec7f1f549c12ca6da0ed5f3fa3c3206ceae398db2f5cf2377df42971588d32c9f73e03e0f416d803cba842e2342419028101c788ee7255144692add2  builds.sr.ht-0.66.4.tar.gz
0b2b6b2916799e20d05d6e35fdb20ac0cded65e254beb79a3aa91d4faa20fe6c93bd3e178acb2d2966841a7ce4f0149b0a863db1d57a36407ff85833779d3959  sr.ht-nginx-0.66.4.tar.gz
0e3ede63309393e15e5b4ecd7d9c511ca2ecc6b99b50bac34c876a3261975b723a45643405aeb0c3b2533f879e854c1f2f3c6d152137611ea3fea72b9d52a045  builds.sr.ht.confd
8efe408c19e088f83ad318d9c5388db1f54956acfd2a7daf75c0728acd40b26244eaea20c74a6f704018e2856831bc931c6646ca2f7842342763070ecc808033  builds.sr.ht.initd
5aa18804ddfee263763b035780679b98cf4877de193c254f24fab7ce56f304556af9a377bfca36635c21b4380892e8d458a420021919934080cc43feda1694c4  builds.sr.ht-worker.confd
8d0a501e76ef704c5eab78dc2cf609b2d033ceeff4f86f36a4b6d27dee9586f7fc855055500626449d57cd9c1fd833ab450b2639b6a85212d0eaf2b4a52bb0a5  builds.sr.ht-worker.initd"