app=wavemon
version=0.9.4
build=1sml
homepage="https://github.com/uoaerg/wavemon"
download="https://github.com/uoaerg/wavemon/archive/refs/tags/v0.9.4.tar.gz"
desc="Text-mode 802.11 wireless network monitor"
requires="netbsd-curses libcap libnl"

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

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

  # wavemon doesn't like our CFLAGS...
  unset CFLAGS

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

  make 
  make install DESTDIR=$pkg 

  mkfinalpkg
}

sha512sums="
5121c6216d6697cc20ef55b2e365098e327a4966758af27a5a58cc13fe84d6e0828336031d9dcfe141210821f72fc3eaefc41fa3ab8a2e572a3b92c168c1ceb1  wavemon-0.9.4.tar.gz
"
