mirror of
https://github.com/pygos/build.git
synced 2024-11-25 04:20:41 +01:00
7009e9554a
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
31 lines
No EOL
625 B
Text
Executable file
31 lines
No EOL
625 B
Text
Executable file
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"
|
|
} |