~dricottone/huttese-apk

ref: d63ad269e0de9c8aa98a006966ac231bf6bc0418 huttese-apk/sr.ht/git.sr.ht/APKBUILD -rw-r--r-- 3.0 KiB
d63ad269 — Drew DeVault py3-iso3166: bump pkgrel 4 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=git.sr.ht
pkgver=0.51.0
pkgrel=0
pkgdesc="sr.ht git service"
url="https://git.sr.ht/~sircmpwn/git.sr.ht"
arch="all"
license="AGPLv3"
depends="
	py3-minio
	py3-pygit2
	py3-redis
	py3-scmsrht
"
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-api.initd
	git.sr.ht-api.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
	cd ../gitsrht-shell
	go build
	cd ../gitsrht-keys
	go build
	cd ../gitsrht-update-hook
	go build
	cd ../api
	go build -o gitsrht-api
}

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-api.initd \
		"$pkgdir"/etc/init.d/git.sr.ht-api
	install -Dm644 "$srcdir"/git.sr.ht-api.confd \
		"$pkgdir"/etc/conf.d/git.sr.ht-api
	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
	cd ../gitsrht-shell
	install -Dm755 gitsrht-shell "$pkgdir"/usr/bin/gitsrht-shell
	cd ../gitsrht-keys
	install -Dm755 gitsrht-keys "$pkgdir"/usr/bin/gitsrht-keys
	cd ../gitsrht-update-hook
	install -Dm755 gitsrht-update-hook "$pkgdir"/usr/bin/gitsrht-update-hook
	cd ../api
	install -Dm755 gitsrht-api "$pkgdir"/usr/bin/gitsrht-api
}

sha512sums="8ed47a1cd0824bd66b7342eafb5bcade7adff8ab03a175f2beef380f6b1ac3268412a7ecf9eb9bc8d99655f4b0298644917b46eece5d7a89c0b958b528a723fe  git.sr.ht-0.51.0.tar.gz
0afd86c1ca4615f52d24dfded4c3efeb2c1216b4b4f59ba46ecfa5da4c7f33865848065534dd6b56fbf63f98b3ea5e5e893fc8e83d5e2b86e1b9f118f2837948  git.sr.ht.initd
4a66308d07c4d71306c15c73cb04efaee66188699304dbea62b295bb64b30b0d66147d6fec736bc7c0718bf43ccbff560db74499e664852fcbe9b157fbbd874f  git.sr.ht.confd
20265fb3516cc8c5226444752ffcb22acad797e7db036247593bce6d5349cb03cf6692f3567f35d36fbd52f6b50fabd1c6a444a6e188e057430a004de8f00637  git.sr.ht-api.initd
9a115a47ea8db88575794c042809641dd4ab4a44706e290ea34c40e415474afbebff5adb0af7da5c5cf1fb5e9a4774587eae2207588562a4f7b0d2e651422190  git.sr.ht-api.confd
2c0849d4582448e961ae4a021c20b9169dd508871a6587881f202f72cde59d066ce8c4cc5c4f1ab911d79a595b4cada4c41d85213c46f4f6304e85e2f0cb149d  git.sr.ht-webhooks.initd
e76b4b0ae51b040766b41da34082b6ea0f610a1039a3ce8b8d8ea496b90f52baf0a856a77b2aec7cd8dc0d2e57a6decca1c855fc2a779adc1baf7e3fe48bbaf0  git.sr.ht-webhooks.confd"