VERSION="4.18" SRCDIR="ethtool-${VERSION}" TARBALL="${SRCDIR}.tar.xz" URL="https://www.kernel.org/pub/software/network/ethtool/" SHA256SUM="90948555d4c017561d0d8795f2dc61893a4932c0f3b85e6d422afd7031b7c110" DEPENDS="toolchain" prepare() { return } build() { run_configure "$1" make -j $NUMJOBS } deploy() { local SOURCE="$1" local DEPLOY="$2" make DESTDIR="$DEPLOY" install cp "$SCRIPTDIR/pkg/$PKGNAME/rootfs_files.txt" "$DEPLOY" } 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" }