1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Kasei Wang <cnsdwpc at gmail.com>
7 pkgdesc="A cross-platform proxy/vpn software"
9 url="https://github.com/txthinking/brook"
13 makedepends=('go' 'git')
14 source=("https://github.com/txthinking/brook/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
15 sha512sums=('f9d5c82cdc1f7db223915bf223452e6e696ce6cf6476f36974e341b47eaa713e239f06181b316b5c7f90850464addfa96ce6bcac8470f850d406782d7046c068')
18 export CGO_CPPFLAGS="${CPPFLAGS}"
19 export CGO_CFLAGS="${CFLAGS}"
20 export CGO_CXXFLAGS="${CXXFLAGS}"
21 export CGO_LDFLAGS="${LDFLAGS}"
22 export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
24 cd brook-$pkgver/cli/brook
29 cd brook-$pkgver/cli/brook
30 install -Dm755 brook -t "$pkgdir"/usr/bin/