~dricottone/huttese-apk

ref: 31fcc5d98136eec0d5f10cde56e0b6afabec4c52 huttese-apk/sr.ht/soju/APKBUILD -rw-r--r-- 1.5 KiB
31fcc5d9 — Drew DeVault py3-weasyprint: add html5lib dependency 2 years ago
                                                                                
4f9cef53 Simon Ser
e70d21b1 Simon Ser
3027a77c Simon Ser
4f9cef53 Simon Ser
6b4c9230 Simon Ser
4f9cef53 Simon Ser
3027a77c Simon Ser
4f9cef53 Simon Ser
6b4c9230 Simon Ser
4f9cef53 Simon Ser
3027a77c Simon Ser
4f9cef53 Simon Ser
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
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=soju
pkgver=0.3.0
pkgrel=2
pkgdesc="User-friendly IRC bouncer"
url="https://soju.im/"
license="AGPL-3.0"
arch="all"
options="chmod-clean !check"
pkgusers="$pkgname"
pkggroups="$pkgname"
install="$pkgname.pre-install"
depends="ca-certificates"
makedepends="go scdoc libcap"
subpackages="$pkgname-openrc $pkgname-doc"
githash=b0bba805310e880ae7840101245acaee163e455b # branch srht
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~emersion/soju/archive/$githash.tar.gz
	$pkgname.initd
	$pkgname.confd
	"
builddir="$srcdir/$pkgname-$githash"

export GOPATH="$srcdir"
export GOFLAGS="$GOFLAGS -trimpath"

build() {
	make
}

check() {
	go test ./...
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr install
	setcap 'cap_net_bind_service=+ep' "$pkgdir"/usr/bin/soju

	install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	install -Dm644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname

	# add additional docs
	install -Dm644 -t "$pkgdir"/usr/share/doc/$pkgname doc/architecture.md
}

sha512sums="
87482b4e37a2849e8c0de7281eece2134c771a7aa031bc3c383d185975521d6e9350327c5b7a0d4a3bd0501c489d7c62b239469bac927393ebcc4be1f9e1fa3f  soju-0.3.0.tar.gz
6072c070b7bdaea08406d60816c74752e5a037c56f823b35333311f1ae3328d7e9dcab22c5a82c8628cbdc92b505e4c2ea989a5118491feb82a44efe84216d06  soju.initd
daca27e5deb5135b406e4160504efa011219147465c2f2b484b92db0aa9174173e37c62d32109937df3d2e8c430625e0ec25956775dd92f7fa1f55b19e0e8a18  soju.confd
"