Date: Saturday, April 17, 2021 @ 21:22:51 Author: foxboron Revision: 919834
upgpkg: brook 20210401-1: Go 1.16 rebuild Modified: brook/trunk/PKGBUILD ----------+ PKGBUILD | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2021-04-17 21:20:23 UTC (rev 919833) +++ PKGBUILD 2021-04-17 21:22:51 UTC (rev 919834) @@ -2,7 +2,7 @@ # Contributor: Kasei Wang <cnsdwpc at gmail.com> pkgname=brook -pkgver=20200901 +pkgver=20210401 pkgrel=1 pkgdesc="A cross-platform proxy/vpn software" arch=('x86_64') @@ -9,24 +9,10 @@ url="https://github.com/txthinking/brook" license=('GPL') depends=('glibc') -makedepends=('go' 'golang-golang-x-net' 'golang-golang-x-text' 'git') +makedepends=('go' 'git') source=("$pkgname-$pkgver.tar.gz::https://github.com/txthinking/brook/archive/v$pkgver.tar.gz") -sha512sums=('a52bfe854515d8090bc23ed0c5e843c29dcccb802d56e6f4e5fee53ed803e3312e6289ec5a22b5e92d2c7e598ce7527d8ca9ea279833859cb1d84958df4f9935') +sha512sums=('25e63ddbcb47b419838d51dcc117a91a56cb2a6f5cff112e295851e3779fa599502c2d35b71e2446e87d56a10cf88b0206b8c3b52967908428761cb39eb3a754') -prepare() { - cd brook-$pkgver - - mkdir build - mkdir -p .gopath/src/github.com/txthinking - ln -sf "$PWD" .gopath/src/github.com/txthinking/brook - export GOPATH="$PWD/.gopath:/usr/share/gocode" - - go get github.com/mdp/qrterminal github.com/patrickmn/go-cache github.com/txthinking/x \ - github.com/txthinking/socks5 github.com/txthinking/encrypt github.com/gorilla/mux \ - github.com/urfave/cli github.com/gorilla/websocket github.com/urfave/negroni \ - github.com/tdewolff/minify github.com/miekg/dns -} - build() { export CGO_CPPFLAGS="${CPPFLAGS}" export CGO_CFLAGS="${CFLAGS}"