-
-
Save DCNick3/4070e436a61b801ff046b0c29dea5d99 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Arley Henostroza <arllk10@gmail.com> | |
pkgname=weave-gitops-bin | |
pkgver=0.15.0 | |
pkgrel=1 | |
pkgdesc='Weave GitOps is a simple open source developer platform for people who want cloud native applications, without needing Kubernetes expertise' | |
arch=('x86_64') | |
url='https://github.com/weaveworks/weave-gitops' | |
license=('MPL2') | |
depends=() | |
makedepends=() | |
provides=('weave-gitops' 'gitops') | |
conflicts=('weave-gitops' 'gitops') | |
source=("$pkgname-$pkgver.tar.gz::https://github.com/weaveworks/weave-gitops/releases/download/v$pkgver/gitops-linux-x86_64.tar.gz") | |
sha256sums=('ebfa3a07e2edd3ee9925c4d197479345f209683442bbda98468fa5d19a817e9a') | |
package() { | |
# prevent the question about analytics from being shown during packaging | |
mkdir fake_config_dir | |
export XDG_CONFIG_HOME="$(pwd)/fake_config_dir" | |
echo '{"analytics": false}' > "$XDG_CONFIG_HOME/weave-gitops-config.json" | |
mkdir -p "$pkgdir/usr/share/bash-completion/completions" | |
mkdir -p "$pkgdir/usr/share/fish/vendor_completions.d" | |
mkdir -p "$pkgdir/usr/share/zsh/site-functions" | |
./gitops completion bash > "$pkgdir/usr/share/bash-completion/completions/gitops" | |
./gitops completion fish > "$pkgdir/usr/share/fish/vendor_completions.d/gitops.fish" | |
./gitops completion zsh > "$pkgdir/usr/share/zsh/site-functions/_gitops" | |
install -Dm 755 "$srcdir/gitops" "$pkgdir/usr/bin/gitops" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment