summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1cc4f9207df39d2b7f574adcd27533cef9c079c7 (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: Joern Griepenburg <joegriepen at gmail dot com>
# Contributer: Arturo Penen <apenen@gmail.com>

pkgname=kyma
pkgver=2.19.3
pkgrel=1
pkgdesc='Provides a set of commands you can use to install, manage, and test Kyma.'
url='https://github.com/kyma-project/cli'
arch=('x86_64')
license=('Apache')
makedepends=('go')
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
sha256sums=('ed39a56893d04cababefef22126b781cd49694dd5b8b7d99b7f99ccfb85c9620')

build() {
  cd cli-$pkgver
  export VERSION=$pkgver
  make build-linux
}

package() {
  install -Dm 755 "cli-${pkgver}/bin/kyma-linux" "${pkgdir}/usr/bin/kyma"

  # Populate bash and zsh completions
  install -dm 755 "${pkgdir}/usr/share/bash-completion/completions"
  install -dm 755 "${pkgdir}/usr/share/zsh/site-functions"
  "${pkgdir}/usr/bin/kyma" completion bash > "${pkgdir}/usr/share/bash-completion/completions/kyma"
  "${pkgdir}/usr/bin/kyma" completion zsh >  "${pkgdir}/usr/share/zsh/site-functions/_kyma"
}

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