desktop/nmap/PKGBUILD

39 lines
917 B
Bash
Raw Normal View History

2012-06-05 06:57:50 +08:00
pkgname=nmap
2018-03-21 07:04:50 +08:00
pkgver=7.70
2016-09-30 07:27:59 +08:00
pkgrel=1
2012-06-05 06:57:50 +08:00
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)
2018-03-21 07:04:50 +08:00
sha256sums=('847b068955f792f4cc247593aca6dc3dc4aae12976169873247488de147a6e18')
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
2016-09-30 07:27:59 +08:00
make
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"
}