mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-05 09:27:19 +02:00
47 lines
1.2 KiB
Text
47 lines
1.2 KiB
Text
maintainer="Hoang Nguyen <folliekazetani@protonmail.com>"
|
|
pkgname=wgcf
|
|
pkgver=2.2.25
|
|
pkgrel=0
|
|
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"
|
|
options="net" # download Go modules
|
|
|
|
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="
|
|
1f4dc21b925376b039c0f6e77dcf62c9770fdeb624941868276b496ad962246d22555245b19cdecdc73522c6f01703364d37ccfae9ad9b191e12a8fac1d3a435 wgcf-2.2.25.tar.gz
|
|
"
|