[arch-commits] Commit in gost/trunk (LICENSE PKGBUILD)
Felix Yan
fyan at archlinux.org
Wed Dec 16 22:23:33 UTC 2015
Date: Wednesday, December 16, 2015 @ 23:23:33
Author: fyan
Revision: 153466
upgpkg: gost 2.0rc-1
- update dependency to makedepend on gcc-go only (thanks to new gcc-libs)
- apply our CFLAGS/LDFLAGS to go build
Added:
gost/trunk/LICENSE
Modified:
gost/trunk/PKGBUILD
----------+
LICENSE | 22 ++++++++++++++++++++++
PKGBUILD | 22 +++++++++++-----------
2 files changed, 33 insertions(+), 11 deletions(-)
Added: LICENSE
===================================================================
--- LICENSE (rev 0)
+++ LICENSE 2015-12-16 22:23:33 UTC (rev 153466)
@@ -0,0 +1,22 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 郑锐
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-12-16 22:18:29 UTC (rev 153465)
+++ PKGBUILD 2015-12-16 22:23:33 UTC (rev 153466)
@@ -2,16 +2,19 @@
# Maintainer: Felix Yan <felixonmars at archlinux.org>
pkgname=gost
-pkgver=1.8
+pkgver=2.0rc
+_tag=2.0-rc
pkgrel=1
pkgdesc="GO Simple Tunnel"
arch=('i686' 'x86_64')
url="https://github.com/ginuerzh/gost"
license=('MIT')
-depends=('gcc-go')
-makedepends=('git' 'mercurial')
-source=("git+https://github.com/ginuerzh/gost.git#tag=v$pkgver")
-md5sums=('SKIP')
+depends=('gcc-libs>=5.3.0-3')
+makedepends=('git' 'mercurial' 'gcc-go')
+source=("git+https://github.com/ginuerzh/gost.git#tag=$_tag"
+ LICENSE)
+md5sums=('SKIP'
+ '24a6686f7498d7af0b51690f712dd618')
prepare() {
cd gost
@@ -20,10 +23,7 @@
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
- go get code.google.com/p/go-uuid/uuid
+ go get github.com/ginuerzh/gosocks5 github.com/gorilla/websocket github.com/shadowsocks/shadowsocks-go/shadowsocks code.google.com/p/go-uuid/uuid github.com/golang/glog
}
build() {
@@ -30,11 +30,11 @@
cd gost
export GOPATH="$PWD/.gopath"
- go build
+ go build -gccgoflags "$CFLAGS $LDFLAGS"
}
package() {
cd gost
install -Dm755 gost "$pkgdir/usr/bin/gost"
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
More information about the arch-commits
mailing list