[arch-commits] Commit in (datree datree/repos datree/trunk datree/trunk/PKGBUILD)
Christian Rebischke
shibumi at gemini.archlinux.org
Sat Nov 6 03:12:12 UTC 2021
Date: Saturday, November 6, 2021 @ 03:12:11
Author: shibumi
Revision: 1037409
add datree
Added:
datree/
datree/repos/
datree/trunk/
datree/trunk/PKGBUILD
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Added: datree/trunk/PKGBUILD
===================================================================
--- datree/trunk/PKGBUILD (rev 0)
+++ datree/trunk/PKGBUILD 2021-11-06 03:12:11 UTC (rev 1037409)
@@ -0,0 +1,33 @@
+# Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
+pkgname=datree
+pkgver=0.14.33
+pkgrel=1
+pkgdesc='CLI tool to ensure K8s manifests and Helm charts follow best practices as well as your organization’s policies'
+arch=('x86_64')
+url='https://github.com/datreeio/datree'
+license=('Apache')
+depends=('kubectl')
+makedepends=('git' 'go')
+source=("${pgname}-${pkgver}.tar.gz::https://github.com/datreeio/datree/archive/refs/tags/${pkgver}.tar.gz")
+sha512sums=('9975f7624b790e15764272cfed3ba314e5e4467a9300c2448137c907ae602e3290e98402493bd50c42f193b299dfa4d3ed67d2b897fd5d752aeb3fd319af83c9')
+b2sums=('ac1d89cc3651961651eb73848fb3bcbc66f30401ecebb0f5b15661fb9c256ead2e6362bf268e201c33e95995284ef75f395e87138e44caff785f3d59bb399d23')
+
+build() {
+ cd "${pkgname}-${pkgver}"
+ 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 -ldflags="-w -s -linkmode=external" ./cmd/
+}
+
+check() {
+ cd "${pkgname}-${pkgver}"
+ go test ./...
+}
+
+package() {
+ cd "${pkgname}-${pkgver}"
+ install -Dm755 datree "${pkgdir}/usr/bin/datree"
+}
More information about the arch-commits
mailing list