APP=htop
VERSION=2.2.0
BUILD=1sml
HOMEPAGE='https://htop.dev/'
DOWNLOAD='https://github.com/htop-dev/htop/archive/refs/tags/2.2.0.tar.gz'
DESC="ncurses-based interactive process viewer written in C"
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 \
    --disable-unicode \
    --enable-cgroup \
    --enable-taskstats 

  make
  make install DESTDIR=$PKG

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
a2f9745572bc424ff6e5290285adaf6f76f635b140f310a727b8ec551e93369a780025d336594853a1769bbc00c299d3772ca3bea5e3f74a47144be5658a41a7  htop-2.2.0.tar.lz
"
