diff options
author | DuckSoft | 2020-06-06 21:26:10 +0800 |
---|---|---|
committer | DuckSoft | 2020-06-06 21:26:10 +0800 |
commit | 65157a5b8f460cc8c56cc9baa7911ed5a5e7e1e9 (patch) | |
tree | c4f3098ab9f8706ceb8bbe56e0009b3f28e7928e | |
parent | 20379a284e2ace1e21b5af2f1f61abfd5f28a5ed (diff) | |
download | aur-65157a5b8f460cc8c56cc9baa7911ed5a5e7e1e9.tar.gz |
don't use prebuilt go dep
-rw-r--r-- | PKGBUILD | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -7,7 +7,7 @@ arch=(x86_64) url="https://github.com/p4gefau1t/trojan-go" license=(GPL3) depends=(glibc v2ray-geoip v2ray-domain-list-community) -makedepends=(go golang-golang-x-crypto golang-golang-x-net) +makedepends=(go) provides=(trojan-go) conflicts=(trojan-go) source=("$_pkgname::git+$url.git") @@ -21,10 +21,7 @@ pkgver() { git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } -build() { - export GOPATH="$srcdir/$_pkgname/build:/usr/share/gocode" - mkdir -p "$srcdir/$_pkgname/build" - +build() { cd "$srcdir"/$_pkgname export CGO_ENABLED=0 export GO111MODULE=on |