#!/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=distcc export VERSION=2.18.3 export ARCH=arm export BUILD=1 export PKGSERIES=d export SLACKPACKAGE=$PACKAGE-$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 # Ensure build dependencies (mainly libraries). # Currently (12-Oct-04) slackware-current's distcc needs gnome but since # gnome's possibly being dropped, I have no problem building distcc now without it. # but if gnome is not dropped then I'll have to rebuild it without --without-gnome ;) slackcheckpkgdeps gtk+2 || installpkg $PKGSTORE/l/gtk+2-*.tgz slackcheckpkgdeps gtk+ || installpkg $PKGSTORE/l/gtk+-*.tgz slackcheckpkgdeps pango || installpkg $PKGSTORE/l/pango-*.tgz slackcheckpkgdeps orbit || installpkg $PKGSTORE/l/orbit-*.tgz slackcheckpkgdeps popt || installpkg $PKGSTORE/l/popt-*.tgz slackcheckpkgdeps libxml2 || installpkg $PKGSTORE/l/libxml2-*.tgz slackcheckpkgdeps gtk+,gtk+2,pango,orbit,popt,libxml2 || exit 99 # Launch the package build script: ( ./$PACKAGE.SlackBuild ) 2>&1 | tee build.log # Compress the build log: bzip2 -9f build.log