[arch-commits] Commit in gost/repos (4 files)

Felix Yan fyan at archlinux.org
Tue May 19 10:05:11 UTC 2015


    Date: Tuesday, May 19, 2015 @ 12:05:11
  Author: fyan
Revision: 133803

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  gost/repos/community-testing-i686/
  gost/repos/community-testing-i686/PKGBUILD
    (from rev 133802, gost/trunk/PKGBUILD)
  gost/repos/community-testing-x86_64/
  gost/repos/community-testing-x86_64/PKGBUILD
    (from rev 133802, gost/trunk/PKGBUILD)

-----------------------------------+
 community-testing-i686/PKGBUILD   |   39 ++++++++++++++++++++++++++++++++++++
 community-testing-x86_64/PKGBUILD |   39 ++++++++++++++++++++++++++++++++++++
 2 files changed, 78 insertions(+)

Copied: gost/repos/community-testing-i686/PKGBUILD (from rev 133802, gost/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD	                        (rev 0)
+++ community-testing-i686/PKGBUILD	2015-05-19 10:05:11 UTC (rev 133803)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=gost
+pkgver=1.2
+pkgrel=1
+pkgdesc="GO Simple Tunnel"
+arch=('i686' 'x86_64')
+url="https://github.com/ginuerzh/gost"
+license=('MIT')
+depends=('gcc-go')
+makedepends=('git')
+source=("git+https://github.com/ginuerzh/gost.git#tag=v$pkgver")
+md5sums=('SKIP')
+
+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
+  go get github.com/gorilla/websocket
+  go get github.com/shadowsocks/shadowsocks-go/shadowsocks
+}
+
+build() {
+  cd gost
+  export GOPATH="$PWD/.gopath"
+
+  go build -o gost *.go
+}
+
+package() {
+  cd gost
+  install -Dm755 gost "$pkgdir/usr/bin/gost"
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}

Copied: gost/repos/community-testing-x86_64/PKGBUILD (from rev 133802, gost/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2015-05-19 10:05:11 UTC (rev 133803)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=gost
+pkgver=1.2
+pkgrel=1
+pkgdesc="GO Simple Tunnel"
+arch=('i686' 'x86_64')
+url="https://github.com/ginuerzh/gost"
+license=('MIT')
+depends=('gcc-go')
+makedepends=('git')
+source=("git+https://github.com/ginuerzh/gost.git#tag=v$pkgver")
+md5sums=('SKIP')
+
+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
+  go get github.com/gorilla/websocket
+  go get github.com/shadowsocks/shadowsocks-go/shadowsocks
+}
+
+build() {
+  cd gost
+  export GOPATH="$PWD/.gopath"
+
+  go build -o gost *.go
+}
+
+package() {
+  cd gost
+  install -Dm755 gost "$pkgdir/usr/bin/gost"
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list