blob: 6ae28e1a91ddefa32b2028aea7484b2aa0dc49a3 (
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
32
33
|
# Maintainer: Burak <burakberkkeskin@gmail.com>
pkgname=kubefwd-git
pkgver=1.22.3.r3.df9078d
pkgrel=1
pkgdesc="kubefwd is a command line utility built to port forward multiple services within one or more namespaces on one or more Kubernetes clusters."
arch=(x86_64)
url="https://github.com/txn2/kubefwd"
license=('GPL')
depends=('go')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=("kubefwd")
source=("git+$url")
md5sums=('SKIP')
# Please refer to the 'USING VCS SOURCES' section of the PKGBUILD man page for
# a description of each element in the source array.
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "%s" "$(git describe --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
build() {
cd "$srcdir/${pkgname%-git}"
go build ./cmd/kubefwd/kubefwd.go
}
package() {
cd "$srcdir/${pkgname%-git}"
install -Dm 755 "${pkgname%-git}" "$pkgdir/usr/bin/${pkgname%-git}"
}
|