diff options
author | Arturo Penen | 2022-06-07 14:57:05 +0200 |
---|---|---|
committer | Arturo Penen | 2022-06-07 14:57:05 +0200 |
commit | 8b088583185e032cd37f75bd067fa1e19133fd9f (patch) | |
tree | d1b7766cb2536e326f0314a959b19ec02e74f980 | |
download | aur-8b088583185e032cd37f75bd067fa1e19133fd9f.tar.gz |
Version 5.4.2
Signed-off-by: Arturo Penen <arturo.penen@diagroup.com>
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 28 |
2 files changed, 40 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..86f50b3de9d8 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = rancher-k3d + pkgdesc = k3s is the lightweight Kubernetes distribution by Rancher + pkgver = 5.4.2 + pkgrel = 1 + url = https://github.com/k3d-io/k3d + arch = x86_64 + license = MIT + makedepends = go + source = rancher-k3d-5.4.2.tar.gz::https://github.com/k3d-io/k3d/archive/refs/tags/v5.4.2.tar.gz + sha256sums = fae4ffc61987321b58b562d7d6c6c0e60c148eb47a9dfeddb330937ef06b3523 + +pkgname = rancher-k3d diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8224e2b82d55 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Arturo Penen <apenen@gmail.com> + +pkgname=rancher-k3d +pkgver=5.4.2 +pkgrel=1 +pkgdesc='k3s is the lightweight Kubernetes distribution by Rancher' +arch=('x86_64') +url='https://github.com/k3d-io/k3d' +license=('MIT') +source=("$pkgname-$pkgver.tar.gz::https://github.com/k3d-io/k3d/archive/refs/tags/v$pkgver.tar.gz") +sha256sums=('fae4ffc61987321b58b562d7d6c6c0e60c148eb47a9dfeddb330937ef06b3523') +makedepends=('go') + +build() { + cd $pkgname-$pkgver + export VERSION=$pkgver + make build +} + +package() { + install -Dm 755 "${srcdir}/$pkgname-$pkgver/bin/k3d" "${pkgdir}/usr/bin/k3d" + + # Populate bash and zsh completions + install -dm 755 "${pkgdir}/usr/share/bash-completion/completions" + install -dm 755 "${pkgdir}/usr/share/zsh/site-functions" + "${pkgdir}/usr/bin/k3d" completion bash > "${pkgdir}/usr/share/bash-completion/completions/k3d" + "${pkgdir}/usr/bin/k3d" completion zsh > "${pkgdir}/usr/share/zsh/site-functions/_k3d" +} |