VERSION="1.31.0" SRCDIR="busybox-$VERSION" TARBALL="busybox-$VERSION.tar.bz2" URL="https://busybox.net/downloads" SHA256SUM="0e4925392fd9f3743cc517e031b68b012b24a63b0cf6c1ff03cce7bb3846cc99" DEPENDS="toolchain" prepare() { return } build() { local SYSROOT="$TCDIR/$TARGET" cp "$SCRIPTDIR/pkg/$PKGNAME/bbstatic.config" "$PKGBUILDDIR/.config" export KBUILD_OUTPUT="$PKGBUILDDIR" make -C "$1" O="$PKGBUILDDIR" CROSS_COMPILE="${TARGET}-" oldconfig sed -i "$PKGBUILDDIR/.config" -e 's,^CONFIG_CROSS_COMPILE=.*,CONFIG_CROSS_COMPILE="'$TARGET'-",' sed -i "$PKGBUILDDIR/.config" -e 's,^CONFIG_SYSROOT=.*,CONFIG_SYSROOT="'$SYSROOT'",' make -C "$1" O="$PKGBUILDDIR" CROSS_COMPILE="${TARGET}-" -j $NUMJOBS } deploy() { mkdir -p "$PKGDEPLOYDIR/bin" cp "$PKGBUILDDIR/busybox" "$PKGDEPLOYDIR/bin" cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$PKGDEPLOYDIR" } check_update() { check_update_simple "$URL" "busybox" "tar.bz2" }