app=ethtool
version=4.18
build=1sml
homepage="https://mirrors.edge.kernel.org/pub/software/network/ethtool/"
download="https://mirrors.edge.kernel.org/pub/software/network/ethtool/ethtool-4.18.tar.xz"
desc="Tool for examining and tuning a network interface"
requires="musl"

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

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


  ./configure \
    --prefix="" \
    --sbindir=/bin 

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
1bb3123dfab3d0fad3aab9c7767af24fe634d449ce38d10bbfed5cf2839c378a1245c85ed410025a47b6eede8430ace377ecb9460ebcfd6db5148f813152b4cf  ethtool-4.18.tar.lz
"
