aports/testing/godini/APKBUILD
2025-05-27 21:26:29 +00:00

31 lines
951 B
Text

# Contributor: The Artifex (4r7if3x) <the.artifex@proton.me>
# Maintainer: The Artifex (4r7if3x) <the.artifex@proton.me>
pkgname=godini
pkgver=1.0.0
pkgrel=0
pkgdesc="INI Configuration Management Tool"
url="https://github.com/bilbilak/godini"
arch="all"
license="GPL-3.0-only"
makedepends="go"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/bilbilak/godini/archive/refs/tags/v$pkgver.tar.gz"
options="net" # go dependencies
build() {
go build -ldflags "-X github.com/bilbilak/godini/config.Version=$pkgver" -o "$pkgname"
}
check() {
./godini --version
}
package() {
install -Dm755 "$pkgname" -t "$pkgdir/usr/bin/"
install -Dm644 "$pkgname.1" -t "$pkgdir/usr/share/man/man1/"
install -Dm644 LICENSE.md -t "$pkgdir/usr/share/licenses/$pkgname/"
}
sha512sums="
648e62523d9625b807b7ef9e3e62859405a537c116abe8c16c63b6bbc27db74369fd02854538e1de19d1dd8e66a420ce098c33acf402efc7c3cc35d2887085c1 godini-1.0.0.tar.gz
"