~dricottone/huttese-apk

ref: 1702be438314219539df8fe2f0cbceab65a7c43c huttese-apk/builds.sr.ht/APKBUILD -rw-r--r-- 900 bytes
1702be43 — Drew DeVault Fix celery and finish builds.sr.ht package 7 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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=builds.sr.ht
pkgver=0.4.6
pkgrel=1
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
	py3-markdown
	py3-bleach
"
makedepends="py-setuptools nodejs sassc"
subpackages="$pkgname-images"
source="http://git.sr.ht/~sircmpwn/$pkgname/snapshot/$pkgname-$pkgver.tar.xz"
builddir="$srcdir/$pkgname-$pkgver"
export PKGVER=$pkgver

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

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

images() {
	cd "$builddir"
	mkdir -p "$subpkgdir"/var/lib/
	cp -R images "$subpkgdir"/var/lib/
}

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