# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
# Contributor: xav <xav at ethertricks dot net>

pkgname=arp-scan
pkgver=1.9.7
pkgrel=1
pkgdesc="A tool that uses ARP to discover and fingerprint IP hosts on the local network"
arch=('x86_64')
url="https://github.com/royhills/arp-scan"
license=('GPL')
depends=('libpcap' 'perl-libwww')
source=(https://github.com/royhills/$pkgname/archive/$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('e03c36e4933c655bd0e4a841272554a347cd0136faf42c4a6564059e0761c039')

build() {
	cd "$srcdir"/$pkgname-$pkgver
	autoreconf --install
	./configure --prefix=/usr --mandir=/usr/share/man
	make
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make DESTDIR="${pkgdir}" install
}
