summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEgor Kovetskiy2016-07-18 16:07:13 +0600
committerEgor Kovetskiy2016-07-18 16:07:13 +0600
commit4dbd70b33c790261b26cdd585a3619be2aaea1e1 (patch)
tree6a0a5920af4166604790e1d7324a7e9d406441cb
parent89d1098d780cd7454f109c4d70b79f66185354f8 (diff)
downloadaur-4dbd70b33c790261b26cdd585a3619be2aaea1e1.tar.gz
initial commit
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD17
2 files changed, 13 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 56274cec517..23ecd5e9039 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index dd7a0ddbcb5..6d9c4d45ec1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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() {