aboutsummaryrefslogtreecommitdiffstats
path: root/community/mycorrhiza/APKBUILD
blob: b86b1f41cfa4cad9a0d649b8c141748799d44036 (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
# Contributor: Umar Getagazov <umar@handlerug.me>
# Maintainer: Umar Getagazov <umar@handlerug.me>
pkgname=mycorrhiza
pkgver=1.9.0
pkgrel=5
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
	"

build() {
	make
}

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="
32539488a9ba3ecf775fbbf38a41da06cac8ee02dca9e3f0a0f327488aa694167e303264d80975c6a9cdad4f51532f256252821c838910d54725d319e4b805cd  mycorrhiza-1.9.0.tar.gz
7e3f789189f190e934cb3279f037e7c6a2a93fae406cb93f2f2e7cc97eb764472a26b57d26f115a837761542c6538c632269cbb2d55aa75af33b91f5389f8e80  mycorrhiza.initd
a8cce20285b037371dae0ceae316d0dd21a22eb42150fbe08cd58ed83772b51896b5f9bc691f3c3ffb9155375d5d87832d66330a1167fd9d926d3658ccbe1e9f  mycorrhiza.confd
"