~dricottone/huttese-apk

ref: 66d909470035c3c2b283c881a28bc3f5936e526e huttese-apk/sr.ht/builds.sr.ht/APKBUILD -rw-r--r-- 1.6 KiB
66d90947 — Drew DeVault Fuck it, abuilds doesn't handle this right anyway 5 years ago
                                                                                
2effb6a1 Drew DeVault
ca184b10 Drew DeVault
04866bce Drew DeVault
2effb6a1 Drew DeVault
66d90947 Drew DeVault
2effb6a1 Drew DeVault
73609379 Drew DeVault
2effb6a1 Drew DeVault
73609379 Drew DeVault
2effb6a1 Drew DeVault
ca184b10 Drew DeVault
66d90947 Drew DeVault
57b6e806 Drew DeVault
ac849302 Drew DeVault
73609379 Drew DeVault
57b6e806 Drew DeVault
2effb6a1 Drew DeVault
57b6e806 Drew DeVault
2effb6a1 Drew DeVault
ac849302 Drew DeVault
2effb6a1 Drew DeVault
73609379 Drew DeVault
9e01eb7a Drew DeVault
2effb6a1 Drew DeVault
ac849302 Drew DeVault
2effb6a1 Drew DeVault
ac849302 Drew DeVault
73609379 Drew DeVault
ac849302 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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=builds.sr.ht
pkgver=0.29.6
pkgrel=0
pkgdesc="sr.ht build service"
url="https://git.sr.ht/~sircmpwn/builds.sr.ht"
arch="all"
license="AGPLv3"
depends="
	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"
source="
	$pkgname-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/$pkgname/archive/${pkgver}.tar.gz
	builds.sr.ht.init
	builds.sr.ht-worker.init
"
install="$pkgname.pre-install"
builddir="$srcdir/$pkgname-$pkgver"
export PKGVER=$pkgver
options="$options !check"

build() {
	cd "$builddir"
	python3 setup.py build
	cd worker
	go build
}

package() {
	cd "$builddir"
	python3 setup.py install --root="$pkgdir" --optimize=1
	install -Dm755 "$srcdir"/builds.sr.ht.init \
		"$pkgdir"/etc/init.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.init \
		"$subpkgdir"/etc/init.d/builds.sr.ht-worker
}

sha512sums="407d80a7927295fc1432a22f8497af9d290e0fcbb2a9fb414eb6de02f3f83b9361d00c12c07773302b97296996a61573cd032f5a53fdd99341e4daf6a959f268  builds.sr.ht-0.29.6.tar.gz
8eafcde30a13ca91ebea29f259eda145de4f25eefe002ffbdd279a26361a4fe9da87e7b9665d1214ccd25c3a3ae46cda795c64c79a49543d1a5eb5f72808cb4f  builds.sr.ht-worker.initd"