blob: 31d288a3723bf015aaad0ff9d8ef824739474169 (
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
36
37
38
39
40
|
# Maintainer: German Lashevich <german.lashevich@gmail.com>
#
# Source: https://github.com/zebradil/aur
#
# shellcheck disable=SC2034,SC2154
pkgname=kapp-bin
pkgver=0.63.3
pkgrel=1
pkgdesc='kapp is a simple deployment tool focused on the concept of "Kubernetes application" — a set of resources with the same label'
url='https://carvel.dev/kapp'
arch=(x86_64 aarch64)
license=(apache-2.0)
install=''
conflicts=(kapp)
provides=(kapp)
source_x86_64=(kapp-v0.63.3::https://github.com/carvel-dev/kapp/releases/download/v0.63.3/kapp-linux-amd64)
source_aarch64=(kapp-v0.63.3::https://github.com/carvel-dev/kapp/releases/download/v0.63.3/kapp-linux-arm64)
sha256sums_x86_64=(33702a40b6032ada742d73c59afeb393d0830a1913e3a599ca995eba3e68a57e)
sha256sums_aarch64=(dbdfa194067c420b5e5ed36cb99f008c9a2dec05f5aeebe770b854898d3de2c4)
package ()
{
set -eo pipefail;
BIN_SRC="${srcdir}/${_z_binname}-v${pkgver}";
BIN_DST="${pkgdir}/usr/bin/${_z_binname}";
install -Dm 755 "$BIN_SRC" "$BIN_DST";
if [[ "$_z_with_completion" == "true" ]]; then
mkdir -p "$pkgdir/usr/share/bash-completion/completions/";
mkdir -p "$pkgdir/usr/share/zsh/site-functions/";
mkdir -p "$pkgdir/usr/share/fish/vendor_completions.d/";
"$BIN_DST" completion bash | install -Dm644 /dev/stdin "$pkgdir/usr/share/bash-completion/completions/$_z_binname";
"$BIN_DST" completion fish | install -Dm644 /dev/stdin "$pkgdir/usr/share/fish/vendor_completions.d/$_z_binname.fish";
"$BIN_DST" completion zsh | install -Dm644 /dev/stdin "$pkgdir/usr/share/zsh/site-functions/_$_z_binname";
fi
}
# Custom variables
_z_binname="kapp"
_z_with_completion="true"
|