aboutsummaryrefslogtreecommitdiffstats
path: root/community/mycorrhiza/APKBUILD
blob: a37c71b24ecebdab44b6988157ddabf5d11a1508 (plain)
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
# Contributor: Umar Getagazov <umar@handlerug.me>
# Maintainer: Umar Getagazov <umar@handlerug.me>
pkgname=mycorrhiza
pkgver=1.12.1
pkgrel=1
pkgdesc="Lightweight wiki engine based on Git"
url="https://mycorrhiza.wiki/"
arch="all"
license="AGPL-3.0-only"
depends="git"
makedepends="go libcap"
install="$pkgname.pre-install"
subpackages="$pkgname-doc $pkgname-openrc"
options="!check net"  # no test suite, needs to download go modules
source="$pkgname-$pkgver.tar.gz::https://github.com/bouncepaw/mycorrhiza/archive/refs/tags/v$pkgver.tar.gz
	mycorrhiza.initd
	mycorrhiza.confd
	"

export GOCACHE="$srcdir/go-cache"
export GOTMPDIR="$srcdir"
export GOMODCACHE="$srcdir/go"

build() {
	make TAGGED_RELEASE="$pkgver"
}

package() {
	make PREFIX="$pkgdir"/usr install
	setcap cap_net_bind_service=+ep "$pkgdir"/usr/bin/$pkgname
	install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	install -Dm644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}

sha512sums="
2eee4ce46ad6cd05a1afa3aa4b1ee8b1f769c52eb4ddb9cacbf77e65704121cff5f2f8aded634d87cf3330182351be52739ea04a51730678bdd9c4b04fd8d376  mycorrhiza-1.12.1.tar.gz
7e3f789189f190e934cb3279f037e7c6a2a93fae406cb93f2f2e7cc97eb764472a26b57d26f115a837761542c6538c632269cbb2d55aa75af33b91f5389f8e80  mycorrhiza.initd
a8cce20285b037371dae0ceae316d0dd21a22eb42150fbe08cd58ed83772b51896b5f9bc691f3c3ffb9155375d5d87832d66330a1167fd9d926d3658ccbe1e9f  mycorrhiza.confd
"