mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
51 lines
1.2 KiB
Bash
51 lines
1.2 KiB
Bash
|
# $Id$
|
||
|
# 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
|
||
|
pkgrel=1
|
||
|
pkgdesc='Benchmarking tool for many different types of networking'
|
||
|
url='http://www.netperf.org/'
|
||
|
license=('custom')
|
||
|
arch=('i686' 'x86_64')
|
||
|
depends=('glibc' 'lksctp-tools')
|
||
|
install=$pkgname.install
|
||
|
source=("ftp://ftp.netperf.org/netperf/$pkgname-$pkgver.tar.bz2"
|
||
|
"$pkgname.service"
|
||
|
'001-fix-inlining.patch')
|
||
|
md5sums=('ad1c5342d61f297c417a93133aeba65a'
|
||
|
'7bce5056b2a24d76fcc0c20e4b527416'
|
||
|
'0160c47c86ff1fca8df64cfb4cd4d9f2')
|
||
|
|
||
|
prepare() {
|
||
|
patch -d $pkgname-$pkgver -p1 < 001-fix-inlining.patch
|
||
|
}
|
||
|
|
||
|
build() {
|
||
|
cd $pkgname-$pkgver
|
||
|
./configure \
|
||
|
--prefix=/usr \
|
||
|
--enable-demo \
|
||
|
--enable-unixdomain \
|
||
|
--enable-dccp \
|
||
|
--enable-sctp
|
||
|
make
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd $pkgname-$pkgver
|
||
|
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:
|