summaryrefslogtreecommitdiff
path: root/extra/iperf/PKGBUILD
blob: 7fadf98b6e08ef9a3afe82cf825865e2369b18b0 (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 153712 2012-03-18 13:40:58Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Dale Blount <dale@archlinux.org>

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

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

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

  ./configure --prefix=/usr \
              --enable-ipv6 \
              --enable-threads
  make
}

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

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