mirror of
https://github.com/pygos/build.git
synced 2024-11-05 11:37:10 +01:00
89f3997429
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
31 lines
No EOL
771 B
Text
Executable file
31 lines
No EOL
771 B
Text
Executable file
VERSION="4.17.0"
|
|
SRCDIR="iproute2-${VERSION}"
|
|
TARBALL="${SRCDIR}.tar.xz"
|
|
URL="https://www.kernel.org/pub/linux/utils/net/iproute2/"
|
|
SHA256SUM="6fa991b092315887775b9e47dc6a89af7ae09dd3ad4ccff754d055c566b4be6e"
|
|
DEPENDS="bdb 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"
|
|
|
|
mkdir -p "$DEPLOY/var/lib/arpd"
|
|
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"
|
|
} |