APP=ncdu
VERSION=1.15
BUILD=1sml
HOMEPAGE='https://dev.yorhel.nl/ncdu'
DOWNLOAD='https://dev.yorhel.nl/download/ncdu-1.15.tar.gz'
DESC="disk usage viewer using netbsd-curses library"
REQUIRES="netbsd-curses"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --bindir=/bin \
    --sysconfdir=/etc 

  make
  make install DESTDIR=$PKG

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

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