~dricottone/huttese-apk

ref: ff4e086d7e18386d0296bdd712f7659c0ab8f2d1 huttese-apk/sr.ht/git.sr.ht/APKBUILD -rw-r--r-- 1.1 KiB
ff4e086d — Drew DeVault Add -openrc, fix sources for git.sr.ht 5 years ago
                                                                                
0525f623 Drew DeVault
b8096b56 Drew DeVault
fd7cbf06 Drew DeVault
0525f623 Drew DeVault
ff4e086d Drew DeVault
0525f623 Drew DeVault
ff4e086d Drew DeVault
0525f623 Drew DeVault
1656619a Drew DeVault
0525f623 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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=git.sr.ht
pkgver=0.16.21
pkgrel=0
pkgdesc="sr.ht git service"
url="https://git.sr.ht/~sircmpwn/git.sr.ht"
arch="noarch"
license="AGPLv3"
depends="
	py3-scmsrht
	py3-pygit2
	py3-redis
"
makedepends="py-setuptools nodejs sassc"
subpackages="${pkgname}-openrc"
source="
	$pkgname-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/$pkgname/archive/$pkgver.tar.gz
	git.sr.ht.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
}

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
}

sha512sums="3f6559de738796ea522fff2ed1aa592bbae4ba56f59535fb66885deb832b5189fd023b108a63427e94128cd5dc71491c76d1e0104b51f20f758bd3fa89168c16  meta.sr.ht-0.9.8.tar.xz
c149ba165ce153a13f55ce4b46427e6a7f7dc97ce7bbd776e6d56255b90edb52cc02f80c83e59dd11a67efd1ef0fe9e2a2812ca171d215df15513a1ca60ba597  meta.sr.ht.init"