summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c2877b5d06ad8e2d996f503e3f3c20e24e38ee22 (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
39
40
41
42
43
44
45
46
# Maintainer:  Chris Severance aur.severach aATt spamgourmet dott com
# Contributor: Julian Langschaedel <meta.rb@gmail.com>
# also see: pacman -Si pv

set -u
_pkgname='pipebench'
pkgname="${_pkgname}-git"
pkgver=0.40.r9.g317cbdf
pkgrel=1
pkgdesc='Measures the speed of stdin/stdout communication.'
arch=('i686' 'x86_64')
url="https://github.com/ThomasHabets/pipebench"
license=('GPL2')
makedepends=('git')
provides=("${_pkgname}=${pkgver%%.r*}")
conflicts=("${_pkgname}")
_srcdir="${_pkgname}"
_verwatch=("${url}/releases" "${url#*github.com}/archive/${pkgname}-\(.*\)\.tar\.gz" 'l')
source=("git+${url}.git")
md5sums=('SKIP')
sha256sums=('SKIP')

pkgver() {
  set -u
  cd "${_srcdir}"
  git describe --long --tags | sed -e "s:^${_pkgname}-::g" -e 's/\([^-]*-g\)/r\1/' -e 's/-/./g'
  set +u
}

build() {
  set -u
  cd "${_srcdir}"
  nice make -s
  set +u
}

package() {
  set -u
  cd "${_srcdir}"
  install -Dpm755 'pipebench' -t "${pkgdir}/usr/bin/"
  install -Dpm644 'pipebench.1' -t "${pkgdir}/usr/share/man/man1/"
  set +u
}
set +u

# vim:set ts=2 sw=2 et: