diff options
author | Matthias Lisin | 2020-06-01 15:21:42 +0200 |
---|---|---|
committer | Matthias Lisin | 2020-06-01 15:21:42 +0200 |
commit | c3069317c2e98ffe12aa9479f148e46522998739 (patch) | |
tree | e7a1bc0c6f9f76531023035ce21db30a8a6be4d0 | |
parent | 2dcc448b8d6ae667eebba99b86fd85c9860471e7 (diff) | |
download | aur-c3069317c2e98ffe12aa9479f148e46522998739.tar.gz |
upgpkg: kpt 0.27.0-1
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | PKGBUILD | 20 |
3 files changed, 24 insertions, 8 deletions
@@ -1,6 +1,6 @@ pkgbase = kpt pkgdesc = Toolkit to manage, manipulate, customize, and apply Kubernetes Resource configurations - pkgver = 0.17.0 + pkgver = 0.27.0 pkgrel = 1 url = https://googlecontainertools.github.io/kpt/ install = kpt.install @@ -8,8 +8,8 @@ pkgbase = kpt license = Apache makedepends = go depends = git - source = kpt-0.17.0.tar.gz::https://github.com/GoogleContainerTools/kpt/archive/v0.17.0.tar.gz - sha256sums = 460f54e3d0cff3ae5edf9f1bf5268d219c44c7c01d0ddf9e1d6f33f0ab01ddb8 + source = kpt-0.27.0.tar.gz::https://github.com/GoogleContainerTools/kpt/archive/v0.27.0.tar.gz + sha256sums = 19db15baceb358c6655b773463219a9669584506ef0b73bdfe16773a6a36525f pkgname = kpt diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..f1ecb611e6e2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +/pkg/ +/src/ +/*.log +/*.tar.gz +/*.pkg.tar* +/*.src.tar* @@ -1,6 +1,6 @@ # Maintainer: ml <ml@visu.li> pkgname=kpt -pkgver=0.17.0 +pkgver=0.27.0 pkgrel=1 pkgdesc='Toolkit to manage, manipulate, customize, and apply Kubernetes Resource configurations' arch=('x86_64') @@ -10,19 +10,29 @@ depends=('git') makedepends=('go') install=kpt.install source=("${pkgname}-${pkgver}.tar.gz::https://github.com/GoogleContainerTools/kpt/archive/v${pkgver}.tar.gz") -sha256sums=('460f54e3d0cff3ae5edf9f1bf5268d219c44c7c01d0ddf9e1d6f33f0ab01ddb8') +sha256sums=('19db15baceb358c6655b773463219a9669584506ef0b73bdfe16773a6a36525f') + +prepare() { + cd "${pkgname}-${pkgver}" + go mod download +} build() { cd "${pkgname}-${pkgver}" + export CGO_ENABLED=1 export CGO_LDFLAGS="$LDFLAGS" - export GOFLAGS='-buildmode=pie -modcacherw -trimpath' + export CGO_CFLAGS="$CFLAGS" + export CGO_CPPFLAGS="$CPPFLAGS" + export CGO_CXXFLAGS="$CXXFLAGS" + export GOFLAGS='-buildmode=pie -trimpath -modcacherw -mod=readonly' go build -o "$pkgname" } check() { cd "${pkgname}-${pkgver}" - # tests rely on git identity being present. fails in clean chroot env - #go test ./... + # ./internal only. we don't want e2e tests + # still git identity requires... + #go test -short -failfast ./internal/... } package() { |