Compiling serf

#necesar lui SVN client
NEW_BUILD_NAME=serf
NEW_BUILD_VER=1.3.6
NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER
ls -l /tmp/$NEW_BUILD_NAME-*
ls -l ~/ffp_0.7_armv5/packages/$NEW_BUILD_NAME-*
NEW_BUILD_NR=0
cd ~/compile
svn co http://serf.googlecode.com/svn/tags/1.3.6/ $NEW_BUILD_NAME_AND_VER
cd $NEW_BUILD_NAME_AND_VER
#~/x.sh ffpg
find . -type f \( -exec sed -i s/"\/usr\/bin\/perl"/"\/ffp\/bin\/perl"/g {} \; , -exec sed -i s/"\/usr\/bin\/python"/"\/ffp\/bin\/python"/g {} \; , -exec sed -i s/"\/usr\/bin\/bash"/"\/ffp\/bin\/bash"/g {} \; , -exec sed -i s/"\/usr\/bin\/sh"/"\/ffp\/bin\/sh"/g {} \; , -exec sed -i s/"\/usr\/bin\/env"/"\/ffp\/bin\/env"/g {} \; , -exec sed -i s/"\/bin\/bash"/"\/ffp\/bin\/bash"/g {} \; , -exec sed -i s/"\/bin\/sh"/"\/ffp\/bin\/sh"/g {} \; , -exec sed -i s/"\/bin\/env"/"\/ffp\/bin\/env"/g {} \; , -exec sed -i s/"\/usr\/include"/"\/ffp\/include"/g {} \; , -exec sed -i s/"\/usr\/local\/include"/"\/ffp\/include"/g {} \; , -exec sed -i s/"\/usr\/local"/"\/ffp"/g {} \; , -exec sed -i s/"\/ffp\/ffp\/"/"\/ffp\/"/g {} \; \)
cp -r ../$NEW_BUILD_NAME_AND_VER ../$NEW_BUILD_NAME_AND_VER-ffpg
mkdir ../$NEW_BUILD_NAME_AND_VER-build
cd ../$NEW_BUILD_NAME_AND_VER-build
#File serf-1.3.6/SConstruct:
#    if sys.platform != 'win32':
#      ### gcc only. figure out appropriate test / better way to check these
#      ### flags, and check for gcc.
#      env.Append(CFLAGS='-std=c89')
#      env['ENV']['PATH'] = '/ffp/bin:/ffp/sbin' -> to add
scons APR=/ffp APU=/ffp OPENSSL=/ffp PREFIX=/ffp -Y /ffp/home/root/compile/$NEW_BUILD_NAME_AND_VER
rm -r $HOME/temp/$NEW_BUILD_NAME_AND_VER
scons PREFIX=$HOME/temp/$NEW_BUILD_NAME_AND_VER/ffp -Y /ffp/home/root/compile/$NEW_BUILD_NAME_AND_VER install
cd $HOME/temp/$NEW_BUILD_NAME_AND_VER
makepkg $NEW_BUILD_NAME $NEW_BUILD_VER $NEW_BUILD_NR
cp -v /tmp/$NEW_BUILD_NAME-$NEW_BUILD_VER-arm-$NEW_BUILD_NR.txz ~/ffp_0.7_armv5/packages/
funpkg -q $NEW_BUILD_NAME
funpkg -i ~/ffp_0.7_armv5/packages/$NEW_BUILD_NAME-$NEW_BUILD_VER-arm-$NEW_BUILD_NR.txz

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.