# Maintainer: German Lashevich # # Source: https://github.com/zebradil/aur # # shellcheck disable=SC2034,SC2154 pkgname=ytt-bin pkgver=0.49.0 pkgrel=2 pkgdesc='YAML templating tool that works on YAML structure instead of text' url='https://carvel.dev/ytt' arch=(x86_64 aarch64) license=(apache-2.0) install='' conflicts=(ytt) provides=(ytt) source_x86_64=(ytt-v0.49.0::https://github.com/carvel-dev/ytt/releases/download/v0.49.0/ytt-linux-amd64) source_aarch64=(ytt-v0.49.0::https://github.com/carvel-dev/ytt/releases/download/v0.49.0/ytt-linux-arm64) sha256sums_x86_64=(357ec754446b1eda29dd529e088f617e85809726c686598ab03cfc1c79f43b56) sha256sums_aarch64=(a2d195b058884c0e36a918936076965b8efb426f7e00f6b7d7b99b82737c7299) 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="ytt" _z_with_completion="true"