# Contributor: Danilo Godec <danilo.godec@agenda.si>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=nuttcp
pkgver=8.2.2
pkgrel=1
pkgdesc="A network performance measurement tool"
url="http://www.nuttcp.net"
arch="all"
license="GPL-2.0-only"
makedepends="linux-headers"
subpackages="$pkgname-doc"
source="http://nuttcp.net/nuttcp/nuttcp-$pkgver/nuttcp-$pkgver.c
	http://nuttcp.net/nuttcp/nuttcp-$pkgver/nuttcp.8"
builddir="$srcdir"

build() {
	${CC:-gcc} $CFLAGS -o nuttcp $LDFLAGS nuttcp-$pkgver.c
}

package() {
	install -Dm755 nuttcp "$pkgdir"/usr/sbin/nuttcp
	install -Dm644 nuttcp.8 "$pkgdir"/usr/share/man/man8/nuttcp.8
}

sha512sums="1a52ac7dd3a4a54806567944120a1e211408ac294342a62e6be11a157018cecb4f964435ceaad1e64ff6ca5c2e83911a68ede3aadd0e23edf739d849c74ca6d3  nuttcp-8.2.2.c
e50621871fd60fe95a078b1f5c70e1e629c68ff14a7ddefccd1cd3831f8ede904ee6f84fa048cfb71e35285f29b71b47160cf707feefaf23d7496e167280e298  nuttcp.8"
