summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fed7f3c85ee76029c0fe50de93fe3f227bc9c071 (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
# Maintainer: larte <lauri.arte@gmail.com>
pkgname=kubectl-bin
pkgdesc="Kubernetes.io client binary"
pkgver=1.2.3
pkgrel=1
arch=('i686' 'x86_64')
url="http://kubernetes.io"
license=('apache')
source=(https://github.com/kubernetes/kubernetes/releases/download/v$pkgver/kubernetes.tar.gz)
md5sums=('69e75650de30d5a52d144799e94a168d')
package() {
    case $CARCH in
        i686)
            _kubectl_arch="386";
            ;;
        x86_64)
            _kubectl_arch="amd64";
            ;;
        *)

        ;;
    esac
    install -d "${pkgdir}"/usr/bin/
    install -D "${srcdir}"/kubernetes/platforms/linux/${_kubectl_arch}/kubectl "$pkgdir/usr/bin/"

}