~dricottone/huttese-apk

ref: f149859daf79f2c2a203f02de0ea94c0f4b76962 huttese-apk/sr.ht/git.sr.ht/APKBUILD -rw-r--r-- 1.3 KiB
f149859d — Drew DeVault Install prometheus data dir 5 years ago
                                                                                
0525f623 Drew DeVault
e70a64ff Drew DeVault
0525f623 Drew DeVault
6c9d9861 Drew DeVault
0525f623 Drew DeVault
b8096b56 Drew DeVault
fd7cbf06 Drew DeVault
0525f623 Drew DeVault
ea275e1f Drew DeVault
ff4e086d Drew DeVault
0525f623 Drew DeVault
ff4e086d Drew DeVault
0525f623 Drew DeVault
9107e9b7 Drew DeVault
0525f623 Drew DeVault
ea275e1f Drew DeVault
0525f623 Drew DeVault
1656619a Drew DeVault
0525f623 Drew DeVault
9107e9b7 Drew DeVault
ea275e1f Drew DeVault
0525f623 Drew DeVault
e70a64ff 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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=git.sr.ht
pkgver=0.22.1
pkgrel=0
pkgdesc="sr.ht git service"
url="https://git.sr.ht/~sircmpwn/git.sr.ht"
arch="all"
license="AGPLv3"
depends="
	py3-scmsrht
	py3-pygit2
	py3-redis
"
makedepends="py-setuptools nodejs sassc go"
subpackages="${pkgname}-openrc"
source="
	$pkgname-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/$pkgname/archive/$pkgver.tar.gz
	git.sr.ht.init
	git.sr.ht-webhooks.init
"
builddir="$srcdir/$pkgname-$pkgver"
export PKGVER=$pkgver
options="$options !check"
install="$pkgname.post-install $pkgname.post-upgrade"

build() {
	cd "$builddir"
	python3 setup.py build
	cd gitsrht-dispatch
	go build
}

package() {
	cd "$builddir"
	python3 setup.py install --root="$pkgdir" --optimize=1
	mkdir -p "$pkgdir"/etc/init.d
	install -Dm755 "$srcdir"/git.sr.ht.init "$pkgdir"/etc/init.d/git.sr.ht
	install -Dm755 "$srcdir"/git.sr.ht-webhooks.init "$pkgdir"/etc/init.d/git.sr.ht-webhooks
	cd gitsrht-dispatch
	install -Dm755 gitsrht-dispatch "$pkgdir"/usr/bin/gitsrht-dispatch
}

sha512sums="48d41ed22e4ba785366016c2044904eb2a2ab0e24f21660b2b262acce3e1f4bc04f36b2340f2344b924592e271c8e8ab67e76b472b0f5a1fbb8afe6f30f6b5b0  git.sr.ht-0.22.1.tar.gz
53d7ecb4456ea5d95afb40d483b6c2feff23543bff0493e14a94a914db4092986ab2fa1e25c6a9478fd7507b9719ef6d214f69f33cd681d756e1d1e5a5db4295  git.sr.ht.init"