summaryrefslogtreecommitdiff
path: root/extra/iperf/PKGBUILD
blob: e07fa4562fc30b869f30c4b986d2ba5422630a89 (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
# $Id: PKGBUILD 132026 2011-07-19 09:15:09Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Dale Blount <dale@archlinux.org>

pkgname=iperf
pkgver=2.0.5
pkgrel=2
pkgdesc="A tool to measure maximum TCP bandwidth"
arch=('i686' 'x86_64')
license=('custom')
url="http://iperf.sourceforge.net"
depends=('gcc-libs')
source=(http://downloads.sourceforge.net/iperf/iperf-2.0.5.tar.gz
	license
        client.cpp.patch)
md5sums=('44b5536b67719f4250faed632a3cd016'
         'a2879f900b76668b28a1cc922909db18'
         '82ce63c87cc8bb2f0f94069857ac14a9')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  # FS#25159
  patch -Np1 -i ${srcdir}/client.cpp.patch

  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  make DESTDIR="${pkgdir}" install
  install -Dm644 ${srcdir}/license "${pkgdir}/usr/share/licenses/iperf/LICENSE"
}