summaryrefslogtreecommitdiff
path: root/community/arping/APKBUILD
blob: c29136ec3964c4f8beeaef8d5ade8cd6e57083a6 (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.19
pkgrel=1
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="7ad242202432d91adc34b049c5511529789cf381ef02e803f8fc61394a5540427b719981946a36f692df9b1b3186e3f39b0f867f583aa42e237ae7f7549822a2  arping-2.19.tar.gz"