diff options
author | Jonas Dellinger | 2020-06-11 20:12:32 +0200 |
---|---|---|
committer | Jonas Dellinger | 2020-06-11 20:12:32 +0200 |
commit | 697b1cab1be09b98e1ad0e0defebfc7d2e47bb22 (patch) | |
tree | 3f6bc4774b2bda6f37e373768222163902c817fa | |
parent | f5fc723f0255792b61b5c6fa2dc751bf19605fb5 (diff) | |
download | aur-697b1cab1be09b98e1ad0e0defebfc7d2e47bb22.tar.gz |
Update 3.0.0_rc.2-2 - Added support for arm and arm64
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 14 |
2 files changed, 15 insertions, 5 deletions
@@ -1,9 +1,13 @@ pkgbase = rancher-k3d-beta-bin pkgdesc = Little helper to run Rancher Labs k3s in Docker. Pre-release Versions pkgver = 3.0.0_rc.2 - pkgrel = 1 + pkgrel = 2 url = https://github.com/rancher/k3d arch = x86_64 + arch = aarch64 + arch = arm + arch = armv6h + arch = armv7h license = MIT provides = k3d conflicts = rancher-k3d-bin @@ -1,15 +1,21 @@ # Maintainer: Jonas Dellinger <jonas@dellinger.dev> pkgname='rancher-k3d-beta-bin' pkgver="3.0.0_rc.2" -pkgrel=1 +pkgrel=2 pkgdesc='Little helper to run Rancher Labs k3s in Docker. Pre-release Versions' -arch=('x86_64') +arch=('x86_64' 'aarch64' 'arm' 'armv6h' 'armv7h') url='https://github.com/rancher/k3d' license=('MIT') provides=('k3d') conflicts=('rancher-k3d-bin') -source=("${pkgname}-${pkgver}::https://github.com/rancher/k3d/releases/download/v${pkgver/_/-}/k3d-linux-amd64") -sha256sums=('e37adffe15ff67c5ed5518a295a198d008363ffe546726686856807b2dcf5860') + +case "${CARCH}" in + x86_64) _CARCH=amd64 && sha256sums=('e37adffe15ff67c5ed5518a295a198d008363ffe546726686856807b2dcf5860');; + aarch64) _CARCH=arm64 && sha256sums=('c24254d2097741b08aed3a1b09ee79b9e13b0dd8d4300c098e45302ca9fecac1');; + arm*) _CARCH=arm && sha256sums=('5556371d31a111a096b57b6c091b2a4300d0f00dc20fa6153e266cff44106a6b');; +esac + +source=("${pkgname}-${pkgver}::https://github.com/rancher/k3d/releases/download/v${pkgver/_/-}/k3d-linux-${_CARCH}") package() { install -Dm 0755 ${pkgname}-${pkgver} "$pkgdir/usr/bin/k3d" |