VERSION="4.16" SRCDIR="ethtool-${VERSION}" TARBALL="${SRCDIR}.tar.xz" URL="https://www.kernel.org/pub/software/network/ethtool/" SHA256SUM="fe967a6722db2099fa63d847b6628e3e31cf9f53571a37503347dcc3e4015a03" DEPENDS="toolchain" prepare() { return } build() { $1/configure --prefix="" --host="$TARGET" --sbindir="/bin" make -j $NUMJOBS } deploy() { local SOURCE="$1" local DEPLOY="$2" make DESTDIR="$DEPLOY" install-strip rm -r "$DEPLOY/share" } check_update() { curl --silent -L "$URL" | grep -o "ethtool-[0-9.]*tar.xz" | \ sed 's/ethtool-//g' | sed 's/.tar.xz//g' | \ verson_find_greatest "$VERSION" }