Skip to content

Instantly share code, notes, and snippets.

@DCNick3

DCNick3/PKGBUILD Secret

Created January 30, 2023 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DCNick3/4070e436a61b801ff046b0c29dea5d99 to your computer and use it in GitHub Desktop.
Save DCNick3/4070e436a61b801ff046b0c29dea5d99 to your computer and use it in GitHub Desktop.
# 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