# Maintainer: Hoang Nguyen pkgname=variant pkgver=0.38.0 pkgrel=9 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 "