#!/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 PACKAGE=qt export ARCH=arm export PKGSERIES=kde export SLACKPACKAGE=$PACKAGE-$VERSION-$ARCH-$BUILD.tgz # Set the config option variables if they are not already set: if [ -r ../KDE.options ]; then . ../KDE.options fi # 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 # Ensure $PACKAGE isn't already installed: slackfailpkgdeps $PACKAGE || removepkg $PACKAGE # Ensure specific build dependencies (mainly libraries): slackcheckpkgdeps byacc || installpkg $PKGSTORE/d/byacc-*.tgz slackcheckpkgdeps mysql || installpkg $PKGSTORE/ap/mysql-*.tgz slackcheckpkgdeps expat || installpkg $PKGSTORE/l/expat-*.tgz slackcheckpkgdeps libjpeg || installpkg $PKGSTORE/l/libjpeg-*.tgz slackcheckpkgdeps libmng || installpkg $PKGSTORE/l/libmng-*.tgz slackcheckpkgdeps libpng || installpkg $PKGSTORE/l/libpng-*.tgz slackcheckpkgdeps x11-devel || installpkg $PKGSTORE/x/x11-devel-*.tgz slackcheckpkgdeps x11 || installpkg $PKGSTORE/x/x11-[0-9]*-*.tgz slackcheckpkgdeps expat,mysql,libjpeg,libmng,libpng,x11,x11-devel || exit 99 # Ensure we have gcc-3.3.x installed: #[ -d /scratchbox ] || upgradepkg $PKGSTORE/../testing/packages/gcc-3.3.x/*.tgz # Launch the package build script: ( ./$PACKAGE.SlackBuild ) >& /dev/stdout | tee build.$ARCH.log # Now switch back to the latest compiler: #[ -d /scratchbox ] || upgradepkg $PKGSTORE/d/gcc*.tgz # Compress the build log: bzip2 -9f build.$ARCH.log