# Maintainer: Chocobo1 pkgname=iperf-git pkgver=r368.g51239ca pkgrel=1 epoch=1 pkgdesc="A tool to measure maximum TCP bandwidth" arch=('i686' 'x86_64') url="https://sourceforge.net/projects/iperf2/" license=('custom') depends=('glibc') makedepends=('git') provides=('iperf') conflicts=('iperf') source=("git+https://git.code.sf.net/p/iperf2/code" "iperf-tcp.service::https://git.archlinux.org/svntogit/community.git/plain/trunk/iperf-tcp.service?h=packages/iperf" "iperf-udp.service::https://git.archlinux.org/svntogit/community.git/plain/trunk/iperf-udp.service?h=packages/iperf") sha256sums=('SKIP' 'SKIP' 'SKIP') pkgver() { cd "code" _rev=$(git rev-list --count --all) _hash=$(git rev-parse --short HEAD) printf "r%s.g%s" "$_rev" "$_hash" } build() { cd "code" autoreconf -fi ./configure --prefix="/usr" make } package() { cd "code" make DESTDIR="$pkgdir" install install -Dm644 "COPYING" "$pkgdir/usr/share/licenses/iperf/COPYING" install -Dm644 "$srcdir/iperf-tcp.service" "$pkgdir/usr/lib/systemd/system/iperf-tcp.service" install -Dm644 "$srcdir/iperf-udp.service" "$pkgdir/usr/lib/systemd/system/iperf-udp.service" }