# Description: Utility for network exploration or security auditing
# URL: https://nmap.org
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: libpcap lua

name=nmap
version=7.94
release=1
source=(https://nmap.org/dist/$name-$version.tar.bz2)


build () {
  cd $name-$version

  ./configure --prefix=/usr \
    --libexecdir=/usr/lib \
    --with-libpcre=included \
    --with-liblua=included \
    --without-zenmap \
    --without-ndiff \
    --disable-nls \
    --without-nmap-update
  make
  make DESTDIR=$PKG install

  find $PKG -iname '*readme*' -exec rm -fr '{}' \+
}
