~dricottone/huttese-apk

ref: a4ee27dc4b95971b9dd31ebf32de701df6c3a245 huttese-apk/sr.ht/builds.sr.ht/APKBUILD -rw-r--r-- 1.5 KiB
a4ee27dc — Drew DeVault Move abuild checksum to after pkgver is set 5 years ago
                                                                                
2effb6a1 Drew DeVault
ca184b10 Drew DeVault
04866bce Drew DeVault
2effb6a1 Drew DeVault
ca184b10 Drew DeVault
ac849302 Drew DeVault
57b6e806 Drew DeVault
ac849302 Drew DeVault
ca184b10 Drew DeVault
57b6e806 Drew DeVault
2effb6a1 Drew DeVault
57b6e806 Drew DeVault
2effb6a1 Drew DeVault
ac849302 Drew DeVault
2effb6a1 Drew DeVault
ac849302 Drew DeVault
2effb6a1 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
# 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:_images $pkgname-worker:_worker:any"
source="
	$pkgname-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/$pkgname/archive/${pkgver}.tar.gz
	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
	cd worker
	go build
}

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

_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
}

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