summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Lisin2020-03-31 16:03:57 +0200
committerMatthias Lisin2020-03-31 16:03:57 +0200
commita03fc16d5367ad4d94cdcdc0eb8a76f4b71e00bf (patch)
treea0446be0a343bfbc85a92b7dfc2ddff020734ce2
downloadaur-a03fc16d5367ad4d94cdcdc0eb8a76f4b71e00bf.tar.gz
newpkg: ksd 1.0.5-1
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD30
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f7186737f57
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = ksd
+ pkgdesc = kubernetes secret decoder
+ pkgver = 1.0.5
+ pkgrel = 1
+ url = https://github.com/mfuentesg/ksd
+ arch = x86_64
+ arch = i686
+ license = MIT
+ makedepends = go
+ depends = glibc
+ source = ksd-1.0.5.tar.gz::https://github.com/mfuentesg/ksd/archive/v1.0.5.tar.gz
+ sha256sums = f6ad0468ce2ab6b79e709aa584fa7905ea0beba985484ed154c49036a869f81e
+
+pkgname = ksd
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..6314396cd75
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: ml <ml@visu.li>
+pkgname=ksd
+pkgver=1.0.5
+pkgrel=1
+pkgdesc='kubernetes secret decoder'
+arch=('x86_64' 'i686')
+url='https://github.com/mfuentesg/ksd'
+license=('MIT')
+depends=('glibc')
+makedepends=('go')
+source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
+sha256sums=('f6ad0468ce2ab6b79e709aa584fa7905ea0beba985484ed154c49036a869f81e')
+
+build() {
+ cd "${pkgname}-${pkgver}"
+ export CGO_LDFLAGS="$LDFLAGS"
+ export GOFLAGS='-buildmode=pie -modcacherw -trimpath'
+ go build -o "$pkgname" -ldflags "-X main.version=v${pkgver}"
+}
+
+check() {
+ cd "${pkgname}-${pkgver}"
+ go test
+}
+
+package() {
+ cd "${pkgname}-${pkgver}"
+ install -Dm755 -t "${pkgdir}/usr/bin" "$pkgname"
+ install -Dm755 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE
+}