summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorEgor Kovetskiy2016-07-18 16:07:13 +0600
committerEgor Kovetskiy2016-07-18 16:07:13 +0600
commit4dbd70b33c790261b26cdd585a3619be2aaea1e1 (patch)
tree6a0a5920af4166604790e1d7324a7e9d406441cb /PKGBUILD
parent89d1098d780cd7454f109c4d70b79f66185354f8 (diff)
downloadaur-blankd.tar.gz
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD17
1 files changed, 10 insertions, 7 deletions
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() {