app=htop
version=2.2.0
build=1sml
homepage="https://htop.dev/"
download="https://github.com/$app-dev/$app/archive/refs/tags/$version.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
"
