2023-10-12 06:27:02 +02:00

34 lines
884 B
Plaintext

# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
pkgname=variant
pkgver=0.38.0
pkgrel=11
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
"