# Maintainer: PktSurf <smlinux@pktsurf.in>
app=iftop
version=0.17
build=1sml
homepage="https://www.ex-parrot.com/pdw/iftop/"
download="https://www.ex-parrot.com/pdw/iftop/download/iftop-$version.tar.gz"
desc="Curses-based network interface monitoring application"
requires="netbsd-curses libpcap"

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

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

build() {
  ./configure \
    --prefix="" \
    --sbindir=/bin \
    --mandir=/share/man \
    $builddist

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
9bf6d32ad9e977a01f5e39e6bf2f7710a5d2c867959da67c734506edf152320de00d6dae0954a9b479862aaf2c83599566325e300f7db27180acbbdbf096f29e  iftop-0.17.tar.lz
"
