updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / amap / PKGBUILD
blobc237d38fd9ce832a4aece890363bcd48b5af2014
1 # Contributor: Tom K <tomk@runbox.com>
2 # Contributor: kastor <kastor@fobos.org.ar>
4 pkgname=amap
5 pkgver=5.2
6 pkgrel=4
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"
12 license='custom'
13 arch=('i686')
15 build() {
16   cd $startdir/src/$pkgname-$pkgver
18   mkdir -p $startdir/pkg/usr/{bin,man/man1,share/amap,share/licenses/amap}
19   
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
24   rm -rf pcre-3.9
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