aboutsummaryrefslogtreecommitdiffstats
path: root/community/nuttcp/APKBUILD
blob: d729d172148e07044e166b6c878d8bcce29efa56 (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
# Contributor: Danilo Godec <danilo.godec@agenda.si>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=nuttcp
pkgver=8.1.4
pkgrel=0
pkgdesc="A network performance measurement tool"
url="http://www.nuttcp.net"
arch="all"
license="GPL-2.0"
makedepends="linux-headers"
source="http://nuttcp.net/nuttcp/nuttcp-$pkgver/nuttcp-$pkgver.c"
builddir="$srcdir"

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

package() {
	cd "$builddir"
	install -Dm755 nuttcp "$pkgdir"/usr/sbin/nuttcp
}

sha512sums="5bc1505d708ed9555c03bb5358f8a94f483b725d99c5b1de74447a888bb4d9485385602538d7be2b56026a87f9fd2255744e7528f92cfb5fe54f5f4ab7c2e1fc  nuttcp-8.1.4.c"