# Maintainer: PktSurf <smlinux@pktsurf.in>
app=ifstat
version=1.1
build=1sml
homepage="https://gael.roualland.free.fr/ifstat/"
download="https://gael.roualland.free.fr/ifstat/ifstat-$version.tar.gz"
desc="tiny real-time interface monitoring application"
requires="musl"

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

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

build() {
  ./configure \
    --prefix=

  make
  install -Dm 755 ifstat $pkg/bin/ifstat
  install -Dm 644 ifstat.1 $pkg/share/man/man1/ifstat.1

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
c8f58066f8b7c68439316e5bcdc46df3708d8f79053572f95b74a264d862cebc75a88849e763914de17a4918de9aacea95beee7363d0b43a1b939bfc989c780d  ifstat-1.1.tar.lz
"
