mirror of
https://github.com/pygos/build.git
synced 2024-11-05 11:37:10 +01:00
50dce293c1
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
29 lines
No EOL
611 B
Text
Executable file
29 lines
No EOL
611 B
Text
Executable file
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"
|
|
} |