summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fa515176cd24d98a2e57300e89afef995500225b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=httperf-git
pkgver=r194.g00bf5da
pkgrel=1
pkgdesc="The HTTP load generator"
arch=('i686' 'x86_64')
url="https://github.com/httperf/httperf"
license=('GPL')
depends=('openssl')
makedepends=('git')
provides=('httperf')
conflicts=('httperf')
source=("git+https://github.com/httperf/httperf.git")
sha256sums=('SKIP')


pkgver() {
  cd "httperf"

  _rev=$(git rev-list --count --all)
  _hash=$(git rev-parse --short HEAD)
  printf "r%s.g%s" "$_rev" "$_hash"
}

build() {
  cd "httperf"

  autoreconf -fi
  ./configure --prefix="/usr"
  make
}

package() {
  cd "httperf"

  make DESTDIR="$pkgdir" install
}