summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fee411624cc873f08fb2f37b13e15b16509a8f2f (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
34
35
# Maintainer: Paul Nicholson <brenix@gmail.com>
# Contributor: Wes Jackson <icebal dot 7 at gmail dot com>

pkgname=kubelet-bin
pkgdesc="Kubernetes.io kubelet binary"
pkgver=1.19.2
pkgrel=1
arch=('x86_64' 'armv7l' 'armv7h' 'aarch64')
url="http://kubernetes.io"
license=('apache')
conflicts=('kubernetes' 'kubernetes-bin')
provides=('kubelet')
source=(
  "kubelet.service"
)
sha256sums=('3ea2a2c44642a584d9ae603fd4dccd401b06bf82338dba893c82a3ed41401a29')

case "$CARCH" in
  arm*) _pkgarch="arm"
    sha256sums+=('631e686c34911a40a798817dcff89532c88bb649885f93ec66b339e227ebd974')
    ;;
  aarch64) _pkgarch="arm64"
    sha256sums+=('86b9336aa7f6215e6f9b387bb82105657668aa8a38b0e0f7c2e647ef45c1b723')
    ;;
  x86_64) _pkgarch="amd64"
    sha256sums+=('7ff6d3663e8de0c654909e7a279e386286aa7ed3fc262d021bed77c92d62780f')
    ;;
esac

source+=(${pkgname}-${pkgver}::"https://storage.googleapis.com/kubernetes-release/release/v${pkgver}/bin/linux/${_pkgarch}/kubelet")

package() {
  install -D -m0644 "kubelet.service" "${pkgdir}/usr/lib/systemd/system/kubelet.service"
  install -D -m0755 "${pkgname}-${pkgver}" "${pkgdir}/usr/bin/kubelet"
}