[arch-commits] Commit in gost/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sat Feb 18 08:50:03 UTC 2017


    Date: Saturday, February 18, 2017 @ 08:50:03
  Author: felixonmars
Revision: 213018

upgpkg: gost 2.3-1

Modified:
  gost/trunk/PKGBUILD

----------+
 PKGBUILD |   18 +++++++-----------
 1 file changed, 7 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-02-18 08:35:12 UTC (rev 213017)
+++ PKGBUILD	2017-02-18 08:50:03 UTC (rev 213018)
@@ -2,14 +2,14 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
 pkgname=gost
-pkgver=2.2
+pkgver=2.3
 pkgrel=1
 pkgdesc="GO Simple Tunnel"
 arch=('i686' 'x86_64')
 url="https://github.com/ginuerzh/gost"
 license=('MIT')
-depends=('gcc-libs')
-makedepends=('git' 'mercurial' 'gcc-go')
+depends=('glibc')
+makedepends=('git' 'mercurial' 'go')
 source=("git+https://github.com/ginuerzh/gost.git#tag=v$pkgver"
         LICENSE)
 md5sums=('SKIP'
@@ -16,18 +16,14 @@
          '24a6686f7498d7af0b51690f712dd618')
 
 prepare() {
-  cd gost
-
-  mkdir -p .gopath/src/github.com/ginuerzh
-  ln -sf "$PWD" .gopath/src/github.com/ginuerzh/gost
-  export GOPATH="$PWD/.gopath"
-
-  go get github.com/ginuerzh/gosocks5 github.com/gorilla/websocket github.com/shadowsocks/shadowsocks-go/shadowsocks github.com/golang/glog golang.org/x/net/http2
+  mkdir .gopath
+  ln -sf "$PWD/gost/cmd/gost/vendor" .gopath/src
+  export GOPATH="$srcdir/.gopath"
 }
 
 build() {
   cd gost/cmd/gost
-  go build -o gost -gccgoflags "$CFLAGS $LDFLAGS"
+  go build # -gccgoflags "$CFLAGS $LDFLAGS"
 }
 
 package() {



More information about the arch-commits mailing list