#!/bin/sh #DEP:ncurses # Set initial variables: CWD=`pwd` if [ "$TMP" = "" ]; then TMP=/tmp fi NAME=busybox VERSION=1.23.2 TARVER=1.23.2 ARCH=`arch` # Compile mkdir -p $PKG tar -xjf $NAME-$TARVER.tar.bz2 || exit 1 cd $NAME-$TARVER #cd util-linux #patch -p1 switch_root.c<$CWD/nocheck.patch || exit 1 #cd .. #export CFLAGS="-fgnu89-inline" #If "multiple definition of `foo'" Also see http://gcc.gnu.org/gcc-4.3/porting_to.html make clean || exit 1 cp ../config .config || exit 1 make oldconfig || exit 1 make -j1 || exit 1 make install || exit 1 # Create the package: cd _install || exit 1 #makepkg -l y -c n $TMP/logrotate-$VERSION-$ARCH-$BUILD.tgz makepkg -l y -c n $CWD/$NAME.pkg > /dev/null && echo $VERSION > $CWD/$NAME.version && arch > $CWD/$NAME.arch