In some cases this will introduce cycles which could likely be cleaned up by only depending on some unix tools instead of the whole autotools. Rebuilding doesn't make much sense at this point since it just adds a subset of base-devel which is still installed by default.
39 lines
1009 B
Bash
39 lines
1009 B
Bash
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
|
|
|
|
pkgname=iperf3
|
|
pkgver=3.9
|
|
pkgrel=1
|
|
pkgdesc='TCP, UDP, and SCTP network bandwidth measurement tool'
|
|
arch=('i686' 'x86_64')
|
|
url="https://github.com/esnet/iperf"
|
|
license=('BSD')
|
|
depends=('gcc-libs' 'openssl')
|
|
makedepends=('openssl-devel' 'autotools')
|
|
source=("https://downloads.es.net/pub/iperf/iperf-${pkgver}.tar.gz")
|
|
sha256sums=('24b63a26382325f759f11d421779a937b63ca1bc17c44587d2fcfedab60ac038')
|
|
|
|
build() {
|
|
cd ${srcdir}/iperf-${pkgver}
|
|
./configure \
|
|
--build=${CHOST} \
|
|
--host=${CHOST} \
|
|
--target=${CHOST} \
|
|
--prefix=/usr \
|
|
ac_cv_func_SetProcessAffinityMask=no
|
|
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd ${srcdir}/iperf-${pkgver}
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/iperf-${pkgver}
|
|
make DESTDIR=${pkgdir} install
|
|
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
|
|
install -Dm 644 examples/*{.am,.in,.c} -t "${pkgdir}/usr/share/doc/${pkgname}/examples"
|
|
}
|