#!/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=kdebindings export VERSION= # deliberately blank - this is set in the {KDE,local}.options file export ARCH=arm export BUILD=1 export PKGSERIES=kde 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 specific build dependencies (mainly libraries): slackcheckpkgdeps kdelibs || installpkg $PKGSTORE/kde/kdelibs-*.tgz slackcheckpkgdeps qt || installpkg $PKGSTORE/kde/qt-*.tgz slackcheckpkgdeps expat || installpkg $PKGSTORE/l/expat-*.tgz slackcheckpkgdeps libart_lgpl || installpkg $PKGSTORE/l/libart_lgpl-*.tgz slackcheckpkgdeps libidn || installpkg $PKGSTORE/l/libidn-*.tgz slackcheckpkgdeps libjpeg || installpkg $PKGSTORE/l/libjpeg-*.tgz slackcheckpkgdeps libmng || installpkg $PKGSTORE/l/libmng-*.tgz slackcheckpkgdeps libpng || installpkg $PKGSTORE/l/libpng-*.tgz slackcheckpkgdeps fribidi || installpkg $PKGSTORE/l/fribidi-*.tgz slackcheckpkgdeps pcre || installpkg $PKGSTORE/l/pcre-*.tgz slackcheckpkgdeps x11 || installpkg $PKGSTORE/x/x11-*.tgz slackcheckpkgdeps x11-devel || installpkg $PKGSTORE/x/x11-*.tgz slackcheckpkgdeps kdelibs,qt,expat,libart_lgpl,libidn,libjpeg,libmng,libpng,fribidi,pcre,x11,x11-devel || exit 99 # Launch the package build script: ( ./$PACKAGE.SlackBuild ) >& /dev/stdout | tee build.$ARCH.log # Compress the build log: bzip2 -9f build.$ARCH.log