aboutsummaryrefslogtreecommitdiffstats
path: root/testing/arp-scan/APKBUILD
blob: 318aa976c6fd1779d312fe5da8768e08668b9046 (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
33
34
35
36
37
38
39
40
41
42
43
# Contributor: Antoine Tenart <antoine.tenart@ack.tf>
# Maintainer: Antoine Tenart <antoine.tenart@ack.tf>
pkgname=arp-scan
pkgver=1.9.5
pkgrel=0
pkgdesc="Address Resolution Protocol (ARP) packet scanner"
url="https://github.com/royhills/arp-scan"
arch="all"
license="GPL-3.0-or-later"
depends=""
makedepends="autoconf automake libpcap-dev libtool"
install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/royhills/arp-scan/archive/$pkgver.tar.gz"

builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	default_prepare
	autoreconf -vfi
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="a10c510dc668b103fc508619d04e5870fdf6f576b79222904cfe988b4e9255604ce1a724100318a662d5f77d33270bc733f0e3091fb9da034a54b9ab402cbcab  arp-scan-1.9.5.tar.gz"