# $Id: PKGBUILD 161987 2012-06-17 23:52:34Z bisson $ # Maintainer: Gaetan Bisson # Contributor: Angel Velasquez # Contributor: Hugo Doria pkgname=nmap pkgver=6.01 pkgrel=1 pkgdesc='Utility for network discovery and security auditing' url='http://nmap.org/' arch=('i686' 'x86_64' 'mips64el') license=('GPL') makedepends=('pygtk') optdepends=('pygtk: zenmap') depends=('pcre' 'openssl' 'libpcap' 'lua') source=("http://nmap.org/dist/${pkgname}-${pkgver}.tar.bz2") sha1sums=('e397e453893930d14e9bb33a847d15b94b7ee83a') build() { cd "${srcdir}/${pkgname}-${pkgver}" # Show icon only if runnable; see FS#12045 echo 'TryExec=/usr/bin/pygtk-demo' >> zenmap/install_scripts/unix/zenmap.desktop echo 'TryExec=/usr/bin/pygtk-demo' >> zenmap/install_scripts/unix/zenmap-root.desktop ./configure \ --prefix=/usr \ --libexecdir=/usr/lib \ --mandir=/usr/share/man \ make } package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install rm "${pkgdir}"/usr/bin/uninstall_zenmap install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }