PKGBUILDs/community/netperf/PKGBUILD

58 lines
1.5 KiB
Bash
Raw Normal View History

2015-08-15 20:43:10 +00:00
# Maintainer: Sébastien Luttringer <seblu@archlinux.org>
# Contributor: Kaiting Chen <kaitocracy@gmail.com>
# Contributor: Tilman Blumenbach <tilman (at) ax86 (dot) net>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - remove libsmbios depend
pkgname=netperf
pkgver=2.7.0
2018-11-13 19:42:10 +00:00
pkgrel=4
2015-08-15 20:43:10 +00:00
pkgdesc='Benchmarking tool for many different types of networking'
2017-07-08 16:12:55 +00:00
url='https://github.com/HewlettPackard/netperf/'
2015-08-15 20:43:10 +00:00
license=('custom')
2018-11-13 19:42:10 +00:00
arch=('x86_64')
2015-08-15 20:43:10 +00:00
depends=('glibc' 'lksctp-tools')
2017-07-08 16:12:55 +00:00
source=("https://github.com/HewlettPackard/netperf/archive/$pkgname-$pkgver.tar.gz"
2015-08-15 20:43:10 +00:00
"$pkgname.service"
'001-fix-inlining.patch')
2017-07-08 16:12:55 +00:00
md5sums=('e0d45b5bca1eee2aef0155de82366202'
2015-08-15 20:43:10 +00:00
'7bce5056b2a24d76fcc0c20e4b527416'
'0160c47c86ff1fca8df64cfb4cd4d9f2')
prepare() {
2017-07-08 16:12:55 +00:00
cd netperf-netperf-$pkgver
2016-05-14 15:46:02 +00:00
# apply patch from the source array (should be a pacman feature)
local filename
for filename in "${source[@]}"; do
if [[ "$filename" =~ \.patch$ ]]; then
2017-07-08 16:12:55 +00:00
msg2 "Applying patch ${filename##*/}"
patch -p1 -N -i "$srcdir/${filename##*/}"
2016-05-14 15:46:02 +00:00
fi
done
:
2015-08-15 20:43:10 +00:00
}
build() {
2017-07-08 16:12:55 +00:00
cd netperf-netperf-$pkgver
2015-08-15 20:43:10 +00:00
./configure \
--prefix=/usr \
--enable-demo \
--enable-unixdomain \
--enable-dccp \
--enable-sctp
make
}
package() {
2017-07-08 16:12:55 +00:00
cd netperf-netperf-$pkgver
2015-08-15 20:43:10 +00:00
make DESTDIR="$pkgdir" install
# license
install -D -m 644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
# systemd
install -D -m 644 ../$pkgname.service \
"$pkgdir/usr/lib/systemd/system/$pkgname.service"
}
# vim:set ts=2 sw=2 et: