~dricottone/huttese-apk

ref: a3efe9f89604ad6e919c02f92ba5ca1cafceb16d huttese-apk/sr.ht/builds.sr.ht/APKBUILD -rw-r--r-- 2.8 KiB
a3efe9f8 — Drew DeVault py3-stripe: update to 2.56.0 3 years ago
                                                                                
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
# 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: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-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() {
	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="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"