~dricottone/huttese-apk

ref: ca184b1082a51b0179e8a2705af08c96e0c258a0 huttese-apk/sr.ht/builds.sr.ht/APKBUILD -rw-r--r-- 1.2 KiB
ca184b10 — Drew DeVault Update builds.sr.ht package 6 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
# 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="noarch"
license="AGPLv3"
depends="
	py3-srht
	py3-pgpy
	py3-celery
	py3-redis
	py3-yaml
"
makedepends="py-setuptools nodejs sassc go"
subpackages="$pkgname-images"
source="
	http://git.sr.ht/~sircmpwn/$pkgname/snapshot/$pkgname-$pkgver.tar.xz
	builds.sr.ht-worker.initd
"
install="$pkgname.pre-install"
builddir="$srcdir/$pkgname-$pkgver"
export PKGVER=$pkgver
options="$options !check"

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

package() {
	cd "$builddir"
	python3 setup.py install --root="$pkgdir" --optimize=1
}

images() {
	depends="qemu-system-x86_64 builds.sr.ht"
	cd "$builddir"
	mkdir -p "$subpkgdir"/var/lib/
	cp -R images "$subpkgdir"/var/lib/
	install -Dm755 "$srcdir"/builds.sr.ht-worker.initd "$subpkgdir"/etc/init.d/builds.sr.ht-worker
}

sha512sums="9eab18643eec0f282a564c2d49b96f184719707d35df5cc4fdced0c8157a9004a95dc0e878f989a1f9eaadd3171316d566b957f53206ddc837965d3c8242994d  builds.sr.ht-0.4.6.tar.xz
9a46e63e9cb24dc48c6e96d8b674a2481374c68568230ebda9e042624ff80406638a5da071e7b92769fe4feb71d5fa276d2d4ed47012fca2107d5d42ef48d6b1  builds.sr.ht-runner.initd"