summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e36afd19643157ab139d158cddbbff531a4f9b39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Maintainer: Jia Sui <jsfaint at gmail dot com>

pkgname=kubecm-git
_pkgname=kubecm
pkgver=v0.15.3
pkgrel=1
pkgdesc="Manage your kubeconfig more easily."
arch=('i686' 'x86_64')
url="https://github.com/sunny0826/kubecm"
makedepends=('make' 'git' 'go')
source=('git+https://github.com/sunny0826/kubecm.git')
sha1sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  git describe --abbrev=0
}

build() {
  cd $srcdir/$_pkgname
  make
}

package() {
  cd "$srcdir"

  # binary
  install -Dm755 $_pkgname/target/${_pkgname}-${pkgver}/kubecm $pkgdir/usr/bin/kubecm
}

# vim:set ts=2 sw=2 ft=sh et: