desktop/nmap/PKGBUILD

40 lines
1.0 KiB
Bash
Raw Normal View History

2012-06-05 06:57:50 +08:00
pkgname=nmap
2016-03-30 07:33:00 +08:00
pkgver=7.12
2012-06-05 06:57:50 +08:00
pkgrel=1
pkgdesc="A network exploration tool and security/port scanner"
2013-05-28 03:02:05 +08:00
arch=('x86_64')
2012-06-05 06:57:50 +08:00
url="http://nmap.org"
license=('custom:GPL')
depends=('pcre' 'openssl' 'libpcap>=1.0.0' 'lua')
2013-05-28 03:02:05 +08:00
# pygtk is needed for zenmap
2012-06-05 06:57:50 +08:00
makedepends=('python2')
2013-05-28 03:02:05 +08:00
optdepends=('pygtk: gui for nmap - zenmap')
2012-06-05 06:57:50 +08:00
options=('!makeflags')
source=(http://nmap.org/dist/${pkgname}-${pkgver}.tar.bz2)
2016-03-30 07:33:00 +08:00
sha256sums=('63df082a87c95a189865d37304357405160fc6333addcf5b84204c95e0539b04')
2012-06-05 06:57:50 +08:00
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
2013-05-28 03:02:05 +08:00
export PYTHON=python2
./configure \
--prefix=/usr \
--libexecdir=/usr/lib \
--mandir=/usr/share/man
2013-12-22 04:10:19 +08:00
# added LUA_LIBS as workaround to liblua not correctly referenced (http://ubuntuforums.org/showthread.php?t=2164741)
make "LUA_LIBS=../liblua/liblua.a -ldl -lm"
2012-06-05 06:57:50 +08:00
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
# remove zenmap uninstall script
rm "${pkgdir}/usr/bin/uninstall_zenmap"
# install custom GPL2 license
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}