# Maintainer: PktSurf <smlinux@pktsurf.in>
app=nmap
version=7.40
build=2sml
homepage="https://nmap.org/"
download="https://nmap.org/dist/nmap-$version.tar.bz2"
desc="Advanced network exploration and security auditing tool"
requires="gcc-libs pcre libpcap openssl python3"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions
}

build() {
  ./configure \
    --prefix= \
    --sysconfdir=/etc \
    --with-liblua=included \
    --without-nmap-update

  make $MAKEFLAGS
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
a569e1c600a9d7bf40122486a720b8881e9c7f55c87c889acb57566d406019f26dcd60f532cdbf27cc0aa07d161fb8fca01d28d246fcb8e8e5643131e5571feb  nmap-7.40.tar.lz
"
