# Maintainer: PktSurf <smlinux@pktsurf.in>
app=ncdu
version=1.15
build=1sml
homepage="https://dev.yorhel.nl/ncdu"
download="https://dev.yorhel.nl/download/ncdu-$version.tar.gz"
desc="Disk usage viewer based on the netbsd-curses library"
requires="netbsd-curses"

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

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

build() {
  ./configure \
    --prefix="" \
    --bindir=/bin 

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
cc41d59cdb8166e9d8e1fe658b1a044aa99ec055ff518ccb71a7c50c2034c9fcdae550a1c9196841239f7d7e70278eaf3b4a1a28cb4d342f9564c95bf14bdd3d  ncdu-1.15.tar.lz
"
