1 # Contributor: Tom K <tomk@runbox.com>
2 # Contributor: kastor <kastor@fobos.org.ar>
7 pkgdesc="Next-generation tool for assisting network penetration testing."
8 depends=('glibc' 'pcre' 'openssl')
9 source=(http://freeworld.thc.org/releases/$pkgname-$pkgver.tar.gz pcre.patch)
10 md5sums=('e3b1f5ebd24aac03aacb38ec183eb426' 'a11774428cb7e97a81107a22682d1798')
11 url="http://freeworld.thc.org/releases.php"
16 cd $startdir/src/$pkgname-$pkgver
18 mkdir -p $startdir/pkg/usr/{bin,man/man1,share/amap,share/licenses/amap}
20 sed -i -e "s:etc/:share/amap/:g" amap-lib.c
21 sed -i 's:/usr/local:/usr:' amap.h
22 sed -i '/DATADIR/s:/etc:/share/amap:' Makefile.am
26 patch -Np1 -i ../pcre.patch || return 1
28 ./configure --prefix=/usr
30 sed -i -e '/^XLIBPATHS/s:=.*:=:' -e '/^XIPATHS=/s:=.*:=:' Makefile
32 make PREFIX=$startdir/pkg/usr install
33 cp LICENCE.AMAP $startdir/pkg/usr/share/licenses/amap