~dricottone/huttese-apk

ref: 78032e4aa0d2eef8fe909bd354a415b7d72bbec1 huttese-apk/sr.ht/git.sr.ht/APKBUILD -rw-r--r-- 2.0 KiB
78032e4a — Drew DeVault py-cairosvg: update to 2.4.0 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=git.sr.ht
pkgver=0.28.3
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.initd
	git.sr.ht.confd
	git.sr.ht-webhooks.initd
	git.sr.ht-webhooks.confd
"
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.initd \
		"$pkgdir"/etc/init.d/git.sr.ht
	install -Dm644 "$srcdir"/git.sr.ht.confd \
		"$pkgdir"/etc/conf.d/git.sr.ht
	install -Dm755 "$srcdir"/git.sr.ht-webhooks.initd \
		"$pkgdir"/etc/init.d/git.sr.ht-webhooks
	install -Dm644 "$srcdir"/git.sr.ht-webhooks.confd \
		"$pkgdir"/etc/conf.d/git.sr.ht-webhooks
	cd gitsrht-dispatch
	install -Dm755 gitsrht-dispatch "$pkgdir"/usr/bin/gitsrht-dispatch
}

sha512sums="771a34eeac9290dde4edc4398a33a43b18cb15fd0d577e741ae54540ecf480104888f8fc15304e5e57554556ed035a45b19f4043b7c37d30245b7e6e99d398e9  git.sr.ht-0.28.3.tar.gz
64ecc7fccf6706b9d732e6f3e1016e4f6f8f076de9c1e920c41d81c7e2ecf74c0a9de1be0d2d789da1b438a06cbf09075ea35d795c1bf9140d4414e0e273bf7a  git.sr.ht.initd
be83df46e7375266fed0e153cd800843568027f0de984c84eb67603b891ae793b1fdd4a04e8e5fbb45e74f4624e58f3cdd70d34edd646394119af5d1e17dcae1  git.sr.ht.confd
e500817c8ff10b42e40853c81c373d86dba7bcec299c62a7dc1c8259a9ca437960fb7b774d9bb92dc824356a1d1d8257e300883af9f660295ef868527358c73d  git.sr.ht-webhooks.initd
8c3365c8f175c901fc0958cb02ca4f1cede282314c904276663800b8be79ff2b2f3bfbd934adfa56f8948dced73de76427fe7703c909a6e5e055d5a164dc17b9  git.sr.ht-webhooks.confd"