# Maintainer: Hoang Nguyen pkgname=wgcf pkgver=2.2.19 pkgrel=1 pkgdesc="Unofficial CLI for Cloudflare Warp" url="https://github.com/ViRb3/wgcf" arch="all" license="MIT" makedepends="go" subpackages=" $pkgname-bash-completion $pkgname-fish-completion $pkgname-zsh-completion " source="$pkgname-$pkgver.tar.gz::https://github.com/ViRb3/wgcf/archive/refs/tags/v$pkgver.tar.gz" export CGO_ENABLED=0 export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" build() { go build -v for shell in bash fish zsh; do ./wgcf completion $shell > wgcf.$shell done } check() { go test ./... } package() { install -Dm755 wgcf -t "$pkgdir"/usr/bin/ install -Dm644 wgcf.bash \ "$pkgdir"/usr/share/bash-completion/completions/wgcf install -Dm644 wgcf.fish \ "$pkgdir"/usr/share/fish/vendor_completions.d/wgcf.fish install -Dm644 wgcf.zsh \ "$pkgdir"/usr/share/zsh/site-functions/_wgcf } sha512sums=" 8c655670ffac0f0fb5a02bb1b54f29f0f0cb3a202af80c99262473e7422304079978ca7993892f612a7eee52167780303b2c22aaf8d5f7f46b9d83f8a281972f wgcf-2.2.19.tar.gz "