1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 19:55:26 +03:00
aports/testing/variant/APKBUILD
2023-02-15 04:17:08 +01:00

33 lines
883 B
Text

# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
pkgname=variant
pkgver=0.38.0
pkgrel=6
pkgdesc="Tool to build CLI applications in YAML"
url="https://github.com/mumoshu/variant"
arch="all"
license="Apache-2.0"
makedepends="go"
checkdepends="bash"
source="$pkgname-$pkgver.tar.gz::https://github.com/mumoshu/variant/archive/refs/tags/v$pkgver.tar.gz"
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
build() {
go build -v \
-o bin/$pkgname \
-ldflags "-X github.com/mumoshu/variant/pkg/cli/version.VERSION=$pkgver"
}
check() {
go test ./...
}
package() {
install -Dm755 bin/$pkgname -t "$pkgdir"/usr/bin/
}
sha512sums="
75c5c3834ab3db6df39eeed29c161b9e6342c1c43dc396a8024531f87fb5487d6c86516bfc7874954c7b9d0d7024b0fcc1fa0f6f8347d23b7cd8606e293fab8d variant-0.38.0.tar.gz
"