blob: 69056ab4951130ed242ad83b9822ff75a4f208ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
pkgname=wgcf
pkgver=2.2.21
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="
595c08cf266e06014d2978db94d452368a7ea86aa4fe90906903ac4a18aea2108329b4029b8909a9737e97e9f828112b04efc91aa61169fe07dc7ef364d4ec17 wgcf-2.2.21.tar.gz
"
|