#!/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=kdebase export VERSION= # deliberately blank - this is set in the {KDE,local}.options file export ARCH=arm export BUILD=2 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 $PACKAGE isn't already installed: slackfailpkgdeps $PACKAGE || removepkg $PACKAGE # Ensure specific build dependencies (mainly libraries): slackcheckpkgdeps kdelibs || installpkg $PKGSTORE/kde/kdelibs-*.tgz slackcheckpkgdeps kdebindings || installpkg $PKGSTORE/kde/kdebindings-*.tgz slackcheckpkgdeps qt || installpkg $PKGSTORE/kde/qt-*.tgz slackcheckpkgdeps alsa-lib || installpkg $PKGSTORE/l/alsa-lib-*.tgz slackcheckpkgdeps arts || installpkg $PKGSTORE/l/arts-*.tgz slackcheckpkgdeps audiofile || installpkg $PKGSTORE/l/audiofile-*.tgz slackcheckpkgdeps esound || installpkg $PKGSTORE/l/esound-*.tgz slackcheckpkgdeps expat || installpkg $PKGSTORE/l/expat-*.tgz slackcheckpkgdeps glib2 || installpkg $PKGSTORE/l/glib2-*.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 libmad || installpkg $PKGSTORE/l/libmad-*.tgz slackcheckpkgdeps libmng || installpkg $PKGSTORE/l/libmng-*.tgz slackcheckpkgdeps libogg || installpkg $PKGSTORE/l/libogg-*.tgz slackcheckpkgdeps libpng || installpkg $PKGSTORE/l/libpng-*.tgz slackcheckpkgdeps libusb || installpkg $PKGSTORE/l/libusb-*.tgz slackcheckpkgdeps libvorbis || installpkg $PKGSTORE/l/libvorbis-*.tgz slackcheckpkgdeps fribidi || installpkg $PKGSTORE/l/fribidi-*.tgz slackcheckpkgdeps pcre || installpkg $PKGSTORE/l/pcre-*.tgz slackcheckpkgdeps cyrus-sasl || installpkg $PKGSTORE/n/cyrus-sasl-*.tgz slackcheckpkgdeps openssl || installpkg $PKGSTORE/n/openssl-*.tgz slackcheckpkgdeps samba || installpkg $PKGSTORE/n/samba-*.tgz slackcheckpkgdeps x11 || installpkg $PKGSTORE/x/x11-*.tgz slackcheckpkgdeps x11-devel || installpkg $PKGSTORE/x/x11-*.tgz slackcheckpkgdeps kdelibs,kdebindings,qt,alsa-lib,arts,audiofile,esound,expat,glib2,libart_lgpl,libidn,libjpeg,libmad,libmng,libogg,libpng,libusb,libvorbis,fribidi,pcre,cyrus-sasl,openssl,samba,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