summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuckSoft2020-06-06 21:26:10 +0800
committerDuckSoft2020-06-06 21:26:10 +0800
commit65157a5b8f460cc8c56cc9baa7911ed5a5e7e1e9 (patch)
treec4f3098ab9f8706ceb8bbe56e0009b3f28e7928e
parent20379a284e2ace1e21b5af2f1f61abfd5f28a5ed (diff)
downloadaur-65157a5b8f460cc8c56cc9baa7911ed5a5e7e1e9.tar.gz
don't use prebuilt go dep
-rw-r--r--PKGBUILD7
1 files changed, 2 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 142375646bff..94cdb55d6a81 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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