summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChocobo12018-01-09 03:15:02 +0800
committerChocobo12018-01-09 03:15:02 +0800
commitf51e3599a9a559a4a3b9fd30b54d09d0b85c004e (patch)
tree29a4221c16e6400fa4d6662fdcedb4ed558ad204
parenta7319a94fe609a3b4146fbd8c2007f20c6a0cce6 (diff)
downloadaur-f51e3599a9a559a4a3b9fd30b54d09d0b85c004e.tar.gz
upgpkg: httperf-git r167.g0c7d127-1
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD27
2 files changed, 15 insertions, 15 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 803552fa1a8..8f0280a25dd 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,7 @@
pkgbase = httperf-git
pkgdesc = The HTTP load generator
- pkgver = 0c7d127
+ pkgver = r167.g0c7d127
pkgrel = 1
- epoch = 2
url = https://github.com/httperf/httperf
arch = i686
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 5c0c9cf9ccf..125056ad372 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,9 +1,8 @@
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=httperf-git
-pkgver=0c7d127
+pkgver=r167.g0c7d127
pkgrel=1
-epoch=2
pkgdesc="The HTTP load generator"
arch=('i686' 'x86_64')
url="https://github.com/httperf/httperf"
@@ -18,29 +17,31 @@ sha256sums=('SKIP'
prepare() {
- cd "httperf"
+ cd "httperf"
- patch -Np1 -i "$srcdir/openssl-1.0.patch"
+ patch -Np1 -i "$srcdir/openssl-1.0.patch"
- autoreconf -i
- mkdir -p "_build"
+ autoreconf -i
+ mkdir -p "_build"
}
pkgver() {
- cd "httperf"
+ cd "httperf"
- git describe --long --tags --always | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+ _rev=$(git rev-list --count --all)
+ _hash=$(git rev-parse --short HEAD)
+ printf "r%s.g%s" "$_rev" "$_hash"
}
build() {
- cd "httperf/_build"
+ cd "httperf/_build"
- ../configure --prefix=/usr
- make
+ ../configure --prefix=/usr
+ make
}
package() {
- cd "httperf/_build"
+ cd "httperf/_build"
- make DESTDIR="$pkgdir" install
+ make DESTDIR="$pkgdir" install
}