# Maintainer: PktSurf <smlinux@pktsurf.in>
app=fping
version=4.2
build=1sml
homepage="https://fping.org/"
download="https://fping.org/dist/fping-$version.tar.gz"
desc="Network ping utility with better performance than traditional ping"
requires="musl"

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

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

build() {
  ./configure \
    --prefix="" \
    --sbindir=/bin \
    --enable-ipv4 \
    --enable-ipv6

  make
  make install DESTDIR=$pkg 

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
175d37330df3558618c6adc166af72e532c760fc2384ec8f5b8ea086bef946e3bb8f3450fea33765ecc902b38a1ec7cf13a4c92983a0d74d02d11771021202fb  fping-4.2.tar.lz
"
