summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2cdf6b1320af02d8fc56ac1082caf4380cf9d1ed (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
# Maintainer: Nicolas Goudry <goudry.nicolas@gmail.com>
pkgname=k8sgpt-git
_pkgname=k8sgpt
pkgver=v0.3.23
pkgrel=1
pkgdesc="Giving Kubernetes Superpowers to everyone"
arch=('x86_64' 'arm64' 'i386')
url="http://k8sgpt.ai/"
conflicts=('k8sgpt')
provides=('k8sgpt')
options=()
license=('Apache')
makedepends=('go' 'git')
source=("git+https://github.com/k8sgpt-ai/k8sgpt.git#commit=eb32a0f2bcdd645161b86ce50ef353da7fd6abf9")
sha256sums=('SKIP')

pkgver() {
	cd "${srcdir}/${_pkgname}"
	git describe --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "${srcdir}/${_pkgname}"
	make tidy cover build
}

package() {
	install -Dm755 "${srcdir}/${_pkgname}/bin/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
	install -Dm644 "${srcdir}/${_pkgname}"/LICENSE         "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}