aports/community/mycorrhiza/APKBUILD
2025-05-11 17:42:12 +02:00

42 lines
1.6 KiB
Text

# Contributor: Umar Getagazov <umar@handlerug.me>
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=mycorrhiza
pkgver=1.15.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"
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.confd
mycorrhiza.initd
enable-cgo.patch
"
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
build() {
make TAGGED_RELEASE="$pkgver"
}
package() {
make DESTDIR="$pkgdir" PREFIX=/usr install
install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
install -Dm644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}
sha512sums="
54f6b18b7dc9bdcbbe6461f0f39be0cafe49c2f6d2bfb43831bc899dd1cdeffd3e8a7a52c6e9fac685619048867888945bcc9e4f2999a0915b3a6ec04ea4cee6 mycorrhiza-1.15.1.tar.gz
a8cce20285b037371dae0ceae316d0dd21a22eb42150fbe08cd58ed83772b51896b5f9bc691f3c3ffb9155375d5d87832d66330a1167fd9d926d3658ccbe1e9f mycorrhiza.confd
f23ea7d6365ab456c82caefa677dd42a06e721ede65bc9197ed04bb7886233effcf64410c4757ff8b5bf5cac9f63f502df41a5539017e0a677c851c660ce8e28 mycorrhiza.initd
88fb974fa9f6417326e4bfa4ad4cd3e958a5c0972af4f1cffaa4ba8cb53fce6cf85d918fc351a412cbf9173d034645c5519bb33907fb0c373417ac370f61025c enable-cgo.patch
"