diff options
author | ml | 2020-08-09 11:11:21 +0200 |
---|---|---|
committer | ml | 2020-08-09 11:11:21 +0200 |
commit | e67f5487d83563ebc08b4138fed12b55b5182cfa (patch) | |
tree | 9cb2b6a1f3c13365081e69b7b190508e10b13be9 | |
download | aur-e67f5487d83563ebc08b4138fed12b55b5182cfa.tar.gz |
newpkg: kubectl-doctor 0.3.0-1
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 33 |
3 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b777549073c7 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = kubectl-doctor + pkgdesc = kubectl cluster triage plugin for k8s + pkgver = 0.3.0 + pkgrel = 1 + url = https://github.com/emirozer/kubectl-doctor + arch = x86_64 + arch = aarch64 + groups = kubectl-plugins + license = Apache + makedepends = go + depends = glibc + source = https://github.com/emirozer/kubectl-doctor/archive/0.3.0/kubectl-doctor-0.3.0.tar.gz + sha256sums = 1d0faeba6875228bc9e77261e55cbc6c7b2ffaabf90c4c3f7fe96f8ea8e299bb + +pkgname = kubectl-doctor + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..35973746ec48 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +/pkg/ +/src/ +/*.log +/*.tar.gz +/*.pkg* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7f6cda18aef2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: ml <ml@visu.li> +pkgname=kubectl-doctor +pkgver=0.3.0 +pkgrel=1 +pkgdesc='kubectl cluster triage plugin for k8s' +arch=('x86_64' 'aarch64') +url='https://github.com/emirozer/kubectl-doctor' +license=('Apache') +depends=('glibc') +makedepends=('go') +groups=('kubectl-plugins') +source=("$url/archive/$pkgver/$pkgname-$pkgver.tar.gz") +sha256sums=('1d0faeba6875228bc9e77261e55cbc6c7b2ffaabf90c4c3f7fe96f8ea8e299bb') + +prepare() { + cd "$pkgname-$pkgver" + go mod download +} + +build() { + cd "$pkgname-$pkgver" + export CGO_ENABLED=1 + export CGO_LDFLAGS="$LDFLAGS" + export CGO_CFLAGS="$CFLAGS" + export CGO_CPPFLAGS="$CPPFLAGS" + export CGO_CXXFLAGS="$CXXFLAGS" + export GOFLAGS='-buildmode=pie -trimpath -modcacherw -mod=readonly' + go build ./cmd/kubectl-doctor.go +} + +package() { + install -Dm755 "$pkgname-$pkgver/$pkgname" -t "$pkgdir/usr/bin" +} |