summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..94109dfd039
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+pkgname=kops-git
+pkgver=1.11.0.alpha.1.r283.ge15d7ee4b
+pkgrel=1
+pkgdesc="Kubernetes Operations (kops git) - Production Grade K8s Installation, Upgrades, and Management"
+arch=('x86_64')
+url="https://github.com/kubernetes/kops"
+license=('Apache')
+makedepends=('go' 'git')
+provides=('kops')
+conflicts=('kops' 'kops-bin')
+source=("${pkgname}-${pkgver}::git+https://github.com/kubernetes/kops")
+md5sums=('SKIP')
+
+prepare(){
+ export GOPATH=$srcdir
+ mkdir -p "$GOPATH/src/k8s.io"
+ mv $pkgname-$pkgver $GOPATH/src/k8s.io/kops
+}
+
+pkgver() {
+ cd $GOPATH/src/k8s.io/kops
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ export GOPATH=$srcdir
+ export GOBIN=$srcdir/bin
+ cd $GOPATH/src/k8s.io/kops
+ make
+}
+
+package() {
+ install -Dm755 "$GOPATH/bin/kops" "$pkgdir/usr/bin/kops"
+}