mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-04 21:32:38 +02:00
38 lines
1.2 KiB
Plaintext
38 lines
1.2 KiB
Plaintext
# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
|
|
pkgname=vals
|
|
pkgver=0.37.3
|
|
pkgrel=0
|
|
pkgdesc="Helm-like configuration values loader with support for various sources"
|
|
url="https://github.com/helmfile/vals"
|
|
arch="all"
|
|
license="Apache-2.0"
|
|
makedepends="go"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/helmfile/vals/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 main.version=v$pkgver -X main.commit=AlpineLinux" \
|
|
./cmd/vals
|
|
}
|
|
|
|
check() {
|
|
# TestValues_.* tests require the running backend services
|
|
# Test_HttpJson test is flaky
|
|
# Tests in pkg/providers/k8s module requires a kubeconfig file with a locally running k8s cluster
|
|
# shellcheck disable=2046
|
|
go test -skip 'TestValues_.*|Test_HttpJson' $(go list ./... | grep -v 'pkg/providers/k8s')
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 bin/$pkgname -t "$pkgdir"/usr/bin/
|
|
}
|
|
|
|
sha512sums="
|
|
e8654ece1ad624e30e297bda7e09a25151f1b6257ca66f6bfe73d74999487c5cd030ccf9c543bbb2fe42fe72fa9f99f24ef99176dd51b57472c225c86479e96c vals-0.37.3.tar.gz
|
|
"
|