summaryrefslogtreecommitdiffstats
path: root/testing/nuttcp/APKBUILD
blob: ec0b72a0aa30f49e2cebaf2a323115dd87263342 (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
36
37
38
39
40
# Contributor: Danilo Godec <danilo.godec@agenda.si>
# Maintainer:
pkgname=nuttcp
pkgver=6.1.2
pkgrel=0
pkgdesc="A network performance measurement tool"
url="http://lcp.nrl.navy.mil/nuttcp/"
arch="all"
license="GPL2"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://lcp.nrl.navy.mil/$pkgname/$pkgname-$pkgver.tar.bz2"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	make || return 1
}

package() {
	cd "$_builddir"
	install -Dm755 nuttcp-6.1.2 "$pkgdir"/usr/sbin/nuttcp
	install -Dm644 nuttcp.8 "$pkgdir"/usr/share/man/man8/nuttcp.8
	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
	install -Dm644 README "$pkgdir"/usr/share/doc/$pkgname/README
}
md5sums="a16d4d6d5def02cea980e57feaf30500  nuttcp-6.1.2.tar.bz2"