mirror of
https://github.com/pygos/build.git
synced 2024-11-16 00:17:11 +01:00
7d53200b9c
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
30 lines
No EOL
734 B
Text
Executable file
30 lines
No EOL
734 B
Text
Executable file
VERSION="4.18.0"
|
|
SRCDIR="iproute2-${VERSION}"
|
|
TARBALL="${SRCDIR}.tar.xz"
|
|
URL="https://www.kernel.org/pub/linux/utils/net/iproute2/"
|
|
SHA256SUM="a9e6c70c95f513871c5e1f4e452c04fcb3c4d8a05be651bd794cd994a52daa45"
|
|
DEPENDS="libmnl"
|
|
|
|
prepare() {
|
|
apply_patches
|
|
}
|
|
|
|
build() {
|
|
cp -r ${1}/* ${PKGBUILDDIR}
|
|
|
|
make HOSTCC="gcc" AR="${TARGET}-ar" LD="${TARGET}-ld" CC="${TARGET}-gcc" SYSROOT="$TCDIR/$TARGET"
|
|
}
|
|
|
|
deploy() {
|
|
local SOURCE="$1"
|
|
local DEPLOY="$2"
|
|
|
|
make DESTDIR="$DEPLOY" SYSROOT="$TCDIR/$TARGET" install
|
|
cp "$SCRIPTDIR/pkg/$PKGNAME/rootfs_files.txt" "$DEPLOY"
|
|
}
|
|
|
|
check_update() {
|
|
curl --silent -L $URL | grep -o "iproute2-[0-9.]*tar.xz" | \
|
|
sed 's/iproute2-//g' | sed 's/.tar.xz//g' | \
|
|
verson_find_greatest "$VERSION"
|
|
} |