~dricottone/huttese-apk

ref: 7c65fd1a7220c46301eeb832265d85fae85341db huttese-apk/sr.ht/hg.sr.ht/APKBUILD -rw-r--r-- 1.2 KiB
7c65fd1a — Drew DeVault Fix supervisor in meta.sr.ht init scripts 5 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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=hg.sr.ht
pkgver=0.1.1
pkgrel=0
pkgdesc="sr.ht mercurial service"
url="https://git.sr.ht/~sircmpwn/hg.sr.ht"
arch="noarch"
license="AGPLv3"
depends="
	py3-hglib
	py3-redis
	py3-scmsrht
	py3-unidiff
"
makedepends="py-setuptools nodejs sassc"
subpackages="${pkgname}-openrc"
source="
	$pkgname-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/$pkgname/archive/$pkgver.tar.gz
	hg.sr.ht.init
	hg.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
}

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

sha512sums="1594fe5b889525c05539c836594c63d7563184b646724fb3cfa0c4e7aaef0f7f61f66606081dc1ff5e9c77acf1febcbb0d6a89ce0ebf11fb58f04d0a7b6e39fb  hg.sr.ht-0.1.1.tar.gz
5138478f70bf2a0614b72ecbb5c85aafae3c8829d126e4a2f6356dde981154e407b55ab74e3724e2a17a70301fd92f8e233bd0bf0c07e047417bf7d8ea1fcf23  hg.sr.ht.init"