summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c4dbf636bfcc8172ee405b0cd6b32cf69ae61fae (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.3
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+=('3c0214d2d583440233b6bd0088614fe4fb5748e5b153f2ec96d72d3f8165e214')
    ;;
  aarch64) _pkgarch="arm64"
    sha256sums+=('228695df98c5cb8a5f64d1235021f54a482a8e63f5b9b1b2addfc95df9b671ee')
    ;;
  x86_64) _pkgarch="amd64"
    sha256sums+=('daa02a34efd936bf9940d9c52fe24c299fc36ba4b31a051968efb3652f289fa9')
    ;;
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"
}