app=bwm-ng
version=0.6.1
build=1sml
homepage="https://github.com/vgropp/bwm-ng"
download="https://github.com/vgropp/bwm-ng/archive/refs/tags/v0.6.1.tar.gz"
desc="Console-based live network and disk io bandwidth monitor for Linux" 
requires="netbsd-curses"

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

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

  applypatch $srcdir/001-Use-static-inline-instead-of-inline.patch

  ./configure \
    --prefix="" \
    --with-ncurses \
    --with-procnetdev \
    --with-partitions 

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/
  
  mkfinalpkg
}

sha512sums="
926cac1cde3e752c0f4d62fa11587a030c50606871647e2a2a0a43b738decaf4ecaedf0105cbc955bf3ef8702e98f32956470e4211172fbeb1f0089dcc2a585e  bwm-ng-0.6.1.tar.lz
53e137810d3e2a278aa68e179f0638e085f920fa75890c2315d534353dd47b08057d757b2a0700d246cc3f4e9aee17a6c172bec34e69bf755460b156f518d801  001-Use-static-inline-instead-of-inline.patch
"
