summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Schmidt2019-09-27 13:07:32 +0200
committerMax Schmidt2019-09-27 13:07:32 +0200
commit70e2c3036178d5e2c87ba144d931100ee20739a3 (patch)
tree69a43eb8d24a59803e540e75b62ab70dc6dd8ad6
parent30ebf31e56af4a37ffbb6ee08f765a6d84aa7753 (diff)
downloadaur-70e2c3036178d5e2c87ba144d931100ee20739a3.tar.gz
Clone from repo
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD20
2 files changed, 17 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e740c941890..5daddf5d26c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,15 @@
pkgbase = kubedecode-git
pkgdesc = Kubedecode decodes all parts of a Kubernetes secret, no more copypasting!
- pkgver = 1.5
+ pkgver = r16.3a13928
pkgrel = 1
url = https://github.com/mschmidt291/kubedecode
arch = any
license = MIT
- makedepends = bash
makedepends = git
depends = kubectl
- provides = kubedecode-git
- conflicts = kubedecode-git
- source = https://github.com/mschmidt291/kubedecode/archive/v1.5.tar.gz
+ provides = kubedecode
+ conflicts = kubedecode
+ source = kubedecode::git+https://github.com/mschmidt291/kubedecode.git
sha1sums = SKIP
pkgname = kubedecode-git
diff --git a/PKGBUILD b/PKGBUILD
index 0be7c88d9e1..217ba416563 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,19 +1,25 @@
# Author: mosra <mosra@centrum.cz>
pkgname=kubedecode-git
-pkgver=1.5
+_pkgname=kubedecode
+pkgver=r16.3a13928
pkgrel=1
pkgdesc="Kubedecode decodes all parts of a Kubernetes secret, no more copypasting!"
arch=('any')
url="https://github.com/mschmidt291/kubedecode"
license=('MIT')
depends=('kubectl')
-makedepends=('bash' 'git')
-provides=('kubedecode-git')
-conflicts=('kubedecode-git')
-source=("https://github.com/mschmidt291/kubedecode/archive/v$pkgver.tar.gz")
+makedepends=('git')
+provides=('kubedecode')
+conflicts=('kubedecode')
+source=("${pkgname%-*}::git+https://github.com/mschmidt291/kubedecode.git")
sha1sums=('SKIP')
+pkgver() {
+ cd "$_pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
package() {
- cd $srcdir/kubedecode-$pkgver/bin
- install -Dm755 "kubedecode" "${pkgdir}/usr/local/bin/kubedecode"
+ cd "$_pkgname"
+ install -Dm755 "bin/kubedecode" "${pkgdir}/usr/bin/kubedecode"
}