#!/bin/bash # arm/build # Check package dependencies, set metadata and launch # package build script. # by Stuart Winter # source /usr/share/slackdev/buildkit.sh # Package metadata: export PKGNAM=kde export VERSION=3.5.10 export ARCH=arm export PKGSERIES=kde export SLACKPACKAGE=$PKGNAM-$VERSION-$ARCH-$BUILD.tgz # Reset the ARM file system: restore it to the 'factory settings' # as it were (this has no effect when building natively): sboxsysrestore # Ensure base ARM packages are installed first: slackbasedeps # Now in L/ so we don't build these as part of the KDE build: # removepkg arts # removepkg qt-* # Remove the KDE packages first: echo "Removing KDE & related packages - this may take a while if you have a full installation..." ( cd /var/log/packages removepkg kde-* removepkg kde* # Now the additional packages: removepkg amarok* koffice* k3b* knemo* ) > /dev/null 2>&1 # Ensure specific build dependencies (mainly libraries): # These are just the ones Pat says we need in order to get going. # slackcheckpkgdeps cups || installpkg $PKGSTORE/a/cups-*.tgz slackcheckpkgdeps pcre || installpkg $PKGSTORE/l/pcre-*.tgz slackcheckpkgdeps libxml2 || installpkg $PKGSTORE/l/libxml2-*.tgz slackcheckpkgdeps libxslt || installpkg $PKGSTORE/l/libxslt-*.tgz slackcheckpkgdeps cups,pcre,libxml2,libxslt || exit 99 # Launch the package build script. # There is no build script for this one - we have the individual # logs for each build script. Although that might make tracking down # a problem harder, I'll think about that when I come to it. ( ./KDE.SlackBuild ) >& /dev/stdout | tee build.$ARCH.log # Compress the build log: bzip2 -9f build.$ARCH.log