~dricottone/huttese-apk

ref: 32e0095978bf4240d9bf738bbde74a9b65763529 huttese-apk/sr.ht/builds.sr.ht/APKBUILD -rw-r--r-- 2.7 KiB
32e00959 — Drew DeVault meta.sr.ht-nginx: add sr.ht-nginx dependency 4 years ago
                                                                                
2effb6a1 Drew DeVault
0a8736be Drew DeVault
485a59b5 Drew DeVault
2effb6a1 Drew DeVault
66d90947 Drew DeVault
2effb6a1 Drew DeVault
37d3f21f Drew DeVault
2effb6a1 Drew DeVault
73609379 Drew DeVault
2effb6a1 Drew DeVault
73609379 Drew DeVault
2effb6a1 Drew DeVault
ca184b10 Drew DeVault
0a8736be Drew DeVault
57b6e806 Drew DeVault
ac849302 Drew DeVault
0a8736be Drew DeVault
c2fcbab4 Drew DeVault
57b6e806 Drew DeVault
421d8231 Drew DeVault
2effb6a1 Drew DeVault
57b6e806 Drew DeVault
2effb6a1 Drew DeVault
ac849302 Drew DeVault
2effb6a1 Drew DeVault
c2fcbab4 Drew DeVault
9e01eb7a Drew DeVault
c2fcbab4 Drew DeVault
2effb6a1 Drew DeVault
ac849302 Drew DeVault
2effb6a1 Drew DeVault
ac849302 Drew DeVault
c2fcbab4 Drew DeVault
ac849302 Drew DeVault
c2fcbab4 Drew DeVault
ac849302 Drew DeVault
0a8736be 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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=builds.sr.ht
pkgver=0.62.5
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-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
"
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-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
}

package() {
	python3 setup.py install --root="$pkgdir" --optimize=1
	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
}

_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"/worker
	install -Dm755 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() {
	install -Dm644 "$srcdir/sr.ht-nginx-master/builds.sr.ht.conf" \
		"$subpkgdir"/etc/nginx/conf.d/builds.sr.ht.conf
}

sha512sums="0aed71d9ba30d01bace46e7e1fff7a355765884b6c3aa71c013a3a980d1bea4899bfd4c5cda76128b862402f7f51e65503138d63553b1938844f6345f6121f78  builds.sr.ht-0.62.5.tar.gz
ef662f839e59bba208210737bf193b230e8e6accf1cda343f91d013b7922f5923f8468d0f18e16376cf6cb6b6c4f2e6a361f7f45fb1da9cc6e42ad045b0e25fc  sr.ht-nginx-0.62.5.tar.gz
0e3ede63309393e15e5b4ecd7d9c511ca2ecc6b99b50bac34c876a3261975b723a45643405aeb0c3b2533f879e854c1f2f3c6d152137611ea3fea72b9d52a045  builds.sr.ht.confd
8efe408c19e088f83ad318d9c5388db1f54956acfd2a7daf75c0728acd40b26244eaea20c74a6f704018e2856831bc931c6646ca2f7842342763070ecc808033  builds.sr.ht.initd
5aa18804ddfee263763b035780679b98cf4877de193c254f24fab7ce56f304556af9a377bfca36635c21b4380892e8d458a420021919934080cc43feda1694c4  builds.sr.ht-worker.confd
8d0a501e76ef704c5eab78dc2cf609b2d033ceeff4f86f36a4b6d27dee9586f7fc855055500626449d57cd9c1fd833ab450b2639b6a85212d0eaf2b4a52bb0a5  builds.sr.ht-worker.initd"