diff options
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 17 |
2 files changed, 13 insertions, 10 deletions
@@ -1,7 +1,7 @@ # Generated by mksrcinfo v8 -# Mon May 30 11:41:21 UTC 2016 +# Mon Jul 18 10:07:08 UTC 2016 pkgbase = blankd - pkgdesc = util for testing http clients or software which makes a http requests + pkgdesc = util for testing utils that makes http requests pkgver = autogenerated pkgrel = 1 arch = i686 @@ -9,7 +9,7 @@ pkgbase = blankd license = GPL makedepends = go makedepends = git - source = blankd::git://github.com:kovetskiy/http-soul.git + source = blankd::git://github.com/kovetskiy/blankd#branch=master md5sums = SKIP pkgname = blankd @@ -2,7 +2,7 @@ pkgname=blankd pkgver=${PKGVER:-autogenerated} pkgrel=${PKGREL:-1} -pkgdesc="util for testing http clients or software which makes a http requests" +pkgdesc="util for testing utils that makes http requests" arch=('i686' 'x86_64') license=('GPL') depends=( @@ -13,7 +13,7 @@ makedepends=( ) source=( - "blankd::git://github.com:kovetskiy/http-soul.git" + "blankd::git://github.com/kovetskiy/blankd#branch=${BRANCH:-master}" ) md5sums=( @@ -24,6 +24,11 @@ backup=( ) pkgver() { + if [[ "$PKGVER" ]]; then + echo "$PKGVER" + return + fi + cd "$srcdir/$pkgname" local date=$(git log -1 --format="%cd" --date=short | sed s/-//g) local count=$(git rev-list --count HEAD) @@ -50,12 +55,10 @@ build() { cd "$srcdir/.go/src/$pkgname/" ln -sf "$srcdir/.go/src/$pkgname/" "$srcdir/$pkgname" - git submodule init - git submodule update + git submodule update --init - echo "Running 'go get'..." - GO15VENDOREXPERIMENT=1 go get \ - -ldflags="-X main.version=$pkgver-$pkgrel" + go get -v \ + -gcflags "-trimpath $GOPATH/src" } package() { |