1 # Contributor: Julian Langschaedel <meta.rb@gmail.com>
2 # also see: pacman -Si pv
6 pkgdesc="pipebench: Measures the speed of stdin/stdout communication."
8 url="http://git.debian.org/git/forensics/"
11 provides=('pipebench-git')
12 conflicts=('pipebench')
16 _gitroot="git://git.debian.org/git/forensics/pipebench.git"
17 _githash=7eb2e617b910ea74b1c504cbc9a243f24b323647
20 if [[ -d $srcdir/$pkgname-$pkgver ]]; then
21 msg "Found Repo on disk, skip checkout"
22 cd $srcdir/$pkgname-$pkgver && git checkout -f pkgbuild || return 1
24 msg "Connecting to GIT server... (clone and checkout pkgbuild hash)"
25 git clone $_gitroot $srcdir/$pkgname-$pkgver || return 1
26 cd $srcdir/$pkgname-$pkgver && git checkout $_githash || return 1
27 cd $srcdir/$pkgname-$pkgver && git checkout -b pkgbuild || return 1
28 cd $srcdir/$pkgname-$pkgver
30 msg "GIT checkout done or server timeout"
32 msg "Clean, build and install the package..."
33 make clean || return 1
35 mkdir -p $pkgdir/usr/bin $pkgdir/usr/share/man/man1
36 cp pipebench $pkgdir/usr/bin/ || return 1
37 cp pipebench.1 $pkgdir/usr/share/man/man1/ || return 1
40 # vim:set ts=2 sw=2 et: