# Maintainer: PktSurf <smlinux@pktsurf.in>
app=nload
version=0.7.4
build=1sml
homepage="https://sourceforge.net/projects/nload/"
download="https://sourceforge.net/projects/nload/files/nload/$version/nload-$version.tar.gz"
desc="Text-mode network traffic and bandwidth monitor"
requires="gcc-libs netbsd-curses"

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

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

build() {
  ./configure \
    --prefix="" \
    $builddist

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
7de50c46eb8f74a23d247fa8331e20a38c51672f945c2f98a0ba3be5ab162397fcd547fc020baac7281b1a0ddcded53b20c4d2e8ecc5daa73da46f625c69cd7b  nload-0.7.4.tar.lz
"
