archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / brook / trunk / PKGBUILD
blob5bc67b84e869cf603305dc751a74e3a224b30344
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Kasei Wang <cnsdwpc at gmail.com>
4 pkgname=brook
5 pkgver=20221010
6 pkgrel=1
7 pkgdesc="A cross-platform proxy/vpn software"
8 arch=('x86_64')
9 url="https://github.com/txthinking/brook"
10 license=('GPL')
11 options=('!lto')
12 depends=('glibc')
13 makedepends=('go' 'git')
14 source=("https://github.com/txthinking/brook/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
15 sha512sums=('f9d5c82cdc1f7db223915bf223452e6e696ce6cf6476f36974e341b47eaa713e239f06181b316b5c7f90850464addfa96ce6bcac8470f850d406782d7046c068')
17 build() {
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
25   go build -o brook
28 package() {
29   cd brook-$pkgver/cli/brook
30   install -Dm755 brook -t "$pkgdir"/usr/bin/