1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-06-13 07:08:44 +02:00
build/pkg/iproute2/build

36 lines
732 B
Plaintext
Raw Normal View History

VERSION="4.15.0"
SRCDIR="iproute2-${VERSION}"
TARBALL="${SRCDIR}.tar.xz"
URL="https://www.kernel.org/pub/linux/utils/net/iproute2/"
SHA256SUM="48d4616a99d7b609b7b795c0ae8ec57099fb0271ed89253e8772c02327798355"
DEPENDS="bdb libmnl"
prepare() {
apply_patches
}
build() {
local SOURCE="$1"
local BUILD="$2"
cp -r ${SOURCE}/* ${BUILD}
make HOSTCC="gcc" AR="${TARGET}-ar" LD="${TARGET}-ld" CC="${TARGET}-gcc" SYSROOT="$TCDIR/$TARGET"
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
mkdir -p "$DEPLOY/var/lib/arpd"
make DESTDIR="$DEPLOY" SYSROOT="$TCDIR/$TARGET" install
rm -r "$DEPLOY/include"
rm -r "$DEPLOY/share/doc"
rm -r "$DEPLOY/share/man"
strip_files ${DEPLOY}/bin/*
}