diff options
author | David Birks | 2019-07-13 16:26:44 -0400 |
---|---|---|
committer | David Birks | 2019-07-13 16:26:44 -0400 |
commit | 091f8c72a6a2c3d44b62cce577abddb4f7cf767b (patch) | |
tree | 9aa343995e8a1f7ec864a53f76d5cfa497806cde | |
download | aur-091f8c72a6a2c3d44b62cce577abddb4f7cf767b.tar.gz |
Initial upload of 0.11.0
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 26 |
3 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..1eeb5587c721 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = kubeval + pkgdesc = Command line tool to validate your Kubernetes configuration files + pkgver = 0.11.0 + pkgrel = 1 + url = https://github.com/instrumenta/kubeval + arch = x86_64 + license = Apache + makedepends = go + conflicts = kubeval-bin + source = kubeval-0.11.0.tar.gz::https://github.com/instrumenta/kubeval/archive/0.11.0.tar.gz + sha512sums = acaa273c25d370fea0c7b695d50b81f3e727cb93b8ce3d9efb5ac81a93a97d8b4513017c4bb136fa154f25d2a6909c9473fc93bd7135967addf4bb2172c99656 + +pkgname = kubeval + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..cf9e6049c80e --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.tar.gz +*.pkg.tar* +pkg/ +src/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8e1d9b256592 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: David Birks <david@tellus.space> + +pkgname=kubeval +pkgver=0.11.0 +pkgrel=1 +pkgdesc='Command line tool to validate your Kubernetes configuration files' +arch=(x86_64) +url='https://github.com/instrumenta/kubeval' +license=(Apache) +conflicts=('kubeval-bin') +makedepends=('go') +source=("$pkgname-$pkgver.tar.gz::https://github.com/instrumenta/kubeval/archive/$pkgver.tar.gz") +sha512sums=('acaa273c25d370fea0c7b695d50b81f3e727cb93b8ce3d9efb5ac81a93a97d8b4513017c4bb136fa154f25d2a6909c9473fc93bd7135967addf4bb2172c99656') + +build() { + # Flags to trim path from binary + export GOFLAGS="-gcflags=all=-trimpath=${PWD} -asmflags=all=-trimpath=${PWD} -ldflags=-extldflags=-zrelro -ldflags=-extldflags=-znow" + + cd $pkgname-$pkgver + go mod vendor + go build -ldflags "-X main.version=$pkgver" -o bin/kubeval . +} + +package() { + install -Dm 755 "$srcdir/$pkgname-$pkgver/bin/kubeval" "$pkgdir/usr/bin/kubeval" +} |