~dricottone/huttese-apk

ref: bf09bc7cfd8f0aa46bf77dc3d73e3dccc0c457f7 huttese-apk/sr.ht/builds.sr.ht/APKBUILD -rw-r--r-- 3.4 KiB
bf09bc7c — Drew DeVault lists.sr.ht: upgrade to 0.49.1 3 years ago
                                                                                
2effb6a1 Drew DeVault
8caea9c4 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
8caea9c4 Drew DeVault
485a59b5 Drew DeVault
8caea9c4 Drew DeVault
c2fcbab4 Drew DeVault
8caea9c4 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
95
96
97
98
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=builds.sr.ht
pkgver=0.70.12
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="
886f7b530c77bd965e9752cec6507045a9867d3292d39ddd82cf37e7c971898415c3ddbde09e9630ae268f97728e8bdd818859cd09aec49d469680693eab14cf  builds.sr.ht-0.70.12.tar.gz
4bc2435c8f67e44d3fdfa9ce2d1f15fbd0a45f066204e56fd5466084b78d12c2a88479d46bfffd185abe1d3a0302a46ce5e73d5e4da239e57707385e63e70b41  sr.ht-nginx-0.70.12.tar.gz
0e3ede63309393e15e5b4ecd7d9c511ca2ecc6b99b50bac34c876a3261975b723a45643405aeb0c3b2533f879e854c1f2f3c6d152137611ea3fea72b9d52a045  builds.sr.ht.confd
8efe408c19e088f83ad318d9c5388db1f54956acfd2a7daf75c0728acd40b26244eaea20c74a6f704018e2856831bc931c6646ca2f7842342763070ecc808033  builds.sr.ht.initd
a507ea33f4e87d41d68b42f816914d357ff687e249e424f2278e3c44e980774080377ca5daa02212776095402ba7e271355d427750270005cf6f6db079040a08  builds.sr.ht-api.confd
e48c2c1ab073a2e8c900bea336004be6f792c5151dc3af4ea3625fd403959b6959d816acfbd8e3f0faae35ed10626c64616fad701bf5212b0c198b554483721d  builds.sr.ht-api.initd
5aa18804ddfee263763b035780679b98cf4877de193c254f24fab7ce56f304556af9a377bfca36635c21b4380892e8d458a420021919934080cc43feda1694c4  builds.sr.ht-worker.confd
8d0a501e76ef704c5eab78dc2cf609b2d033ceeff4f86f36a4b6d27dee9586f7fc855055500626449d57cd9c1fd833ab450b2639b6a85212d0eaf2b4a52bb0a5  builds.sr.ht-worker.initd
"