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

Felix Yan felixonmars at archlinux.org
Thu Oct 20 14:40:36 UTC 2016


    Date: Thursday, October 20, 2016 @ 14:40:36
  Author: felixonmars
Revision: 192731

upgpkg: gost 2.2-1

Modified:
  gost/trunk/PKGBUILD

----------+
 PKGBUILD |   16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-10-20 14:26:09 UTC (rev 192730)
+++ PKGBUILD	2016-10-20 14:40:36 UTC (rev 192731)
@@ -2,15 +2,15 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
 pkgname=gost
-pkgver=2.1
+pkgver=2.2
 pkgrel=1
 pkgdesc="GO Simple Tunnel"
 arch=('i686' 'x86_64')
 url="https://github.com/ginuerzh/gost"
 license=('MIT')
-depends=('gcc-libs>=5.3.0-3')
+depends=('gcc-libs')
 makedepends=('git' 'mercurial' 'gcc-go')
-source=("git+https://github.com/ginuerzh/gost.git#tag=$pkgver"
+source=("git+https://github.com/ginuerzh/gost.git#tag=v$pkgver"
         LICENSE)
 md5sums=('SKIP'
          '24a6686f7498d7af0b51690f712dd618')
@@ -22,18 +22,16 @@
   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
+  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
 }
 
 build() {
-  cd gost
-  export GOPATH="$PWD/.gopath"
-
-  go build -gccgoflags "$CFLAGS $LDFLAGS"
+  cd gost/cmd/gost
+  go build -o gost -gccgoflags "$CFLAGS $LDFLAGS"
 }
 
 package() {
   cd gost
-  install -Dm755 gost "$pkgdir/usr/bin/gost"
+  install -Dm755 cmd/gost/gost "$pkgdir/usr/bin/gost"
   install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }



More information about the arch-commits mailing list