aboutsummaryrefslogtreecommitdiff
path: root/community/nuttcp/APKBUILD
blob: c50fd462e894cb9b9d3d39f520df71d14e575e17 (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.2.2
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="1a52ac7dd3a4a54806567944120a1e211408ac294342a62e6be11a157018cecb4f964435ceaad1e64ff6ca5c2e83911a68ede3aadd0e23edf739d849c74ca6d3  nuttcp-8.2.2.c"