aboutsummaryrefslogtreecommitdiffstats
path: root/community/arping/APKBUILD
blob: 3c40226c66a57d1213954dc9763d90a9debfd58f (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=arping
pkgver=2.20
pkgrel=0
pkgdesc="An ARP ping utility"
url="http://www.habets.pp.se/synscan/programs.php?prog=arping"
arch="all"
license="GPL-2.0-or-later"
depends="!iputils"
makedepends="libnet-dev libpcap-dev"
checkdepends="subunit-dev check-dev"
subpackages="$pkgname-doc"
source="http://www.habets.pp.se/synscan/files/$pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver

check() {
	cd "$builddir"
	./src/arping --help > /dev/null
}

build() {
	cd "$builddir"
	./configure --prefix=/usr
	make
}
package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="2aefcc5fe77915b519e5279200ca8c0e4e116a7933cc498f650a80e8eb487d8bbfce50ae410acda5c3959dbfad0c5ed585fd058a30f0f6c83812079079b80519  arping-2.20.tar.gz"