summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 608222e067fe901d103ff7350f8ca41dc432945c (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
# Maintainer: Bhusan Gupta <bhusan.gupta@gmail.com>
pkgname=arp-scan-git
pkgver=r304.af905ce
pkgrel=1
pkgdesc="The ARP Scanner"
arch=(i686 x86_64)
url="https://github.com/royhills/arp-scan"
license=('GPL')
depends=(libpcap)
makedepends=(git)
checkdepends=()
optdepends=('perl: scripting support')
source=(git+https://github.com/royhills/arp-scan)
sha256sums=('SKIP')

pkgver() {
  cd arp-scan
  echo r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
	cd arp-scan
	autoreconf --install
	./configure --prefix=/usr
	make
}

check() {
	cd arp-scan
	make -k check
}

package() {
	cd arp-scan
	make install DESTDIR="$pkgdir"
}