#!/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=amarok export ARCH=arm export BUILD=2 ### Check build number since it's not in sync with KDE export VERSION=2.3.0 #### not in sync with KDE 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 # Ensure $PKGNAM isn't already installed: slackfailpkgdeps $PKGNAM || removepkg $PKGNAM # Ensure specific build dependencies (mainly libraries): { slackcheckpkgdeps mysql || installpkg $PKGSTORE/ap/mysql-*.tgz || exit 99 ; } { slackcheckpkgdeps acl || installpkg $PKGSTORE/a/acl-*.tgz || exit 99 ; } { slackcheckpkgdeps attr || installpkg $PKGSTORE/a/attr-*.tgz || exit 99 ; } { slackcheckpkgdeps ruby || installpkg $PKGSTORE/d/ruby-*.tgz || exit 99 ; } { slackcheckpkgdeps kdebase || installpkg $PKGSTORE/kde/kdebase-*.tgz || exit 99 ; } { slackcheckpkgdeps kdelibs || installpkg $PKGSTORE/kde/kdelibs-*.tgz || exit 99 ; } { slackcheckpkgdeps expat || installpkg $PKGSTORE/l/expat-*.tgz || exit 99 ; } { slackcheckpkgdeps freetype || installpkg $PKGSTORE/l/freetype-*.tgz || exit 99 ; } { slackcheckpkgdeps gamin || installpkg $PKGSTORE/l/gamin-*.tgz || exit 99 ; } { slackcheckpkgdeps glib2 || installpkg $PKGSTORE/l/glib2-*.tgz || exit 99 ; } { slackcheckpkgdeps gtk+2 || installpkg $PKGSTORE/l/gtk+2-*.tgz || exit 99 ; } { slackcheckpkgdeps lcms || installpkg $PKGSTORE/l/lcms-*.tgz || exit 99 ; } { slackcheckpkgdeps libart_lgpl || installpkg $PKGSTORE/l/libart_lgpl-*.tgz || exit 99 ; } { slackcheckpkgdeps libgpod || installpkg $PKGSTORE/l/libgpod-*.tgz || exit 99 ; } { slackcheckpkgdeps libidn || installpkg $PKGSTORE/l/libidn-*.tgz || exit 99 ; } { slackcheckpkgdeps libjpeg || installpkg $PKGSTORE/l/libjpeg-*.tgz || exit 99 ; } { slackcheckpkgdeps libkarma || installpkg $PKGSTORE/l/libkarma-*.tgz || exit 99 ; } { slackcheckpkgdeps libmng || installpkg $PKGSTORE/l/libmng-*.tgz || exit 99 ; } { slackcheckpkgdeps libmtp || installpkg $PKGSTORE/l/libmtp-*.tgz || exit 99 ; } { slackcheckpkgdeps libnjb || installpkg $PKGSTORE/l/libnjb-*.tgz || exit 99 ; } { slackcheckpkgdeps libpng || installpkg $PKGSTORE/l/libpng-*.tgz || exit 99 ; } { slackcheckpkgdeps libusb || installpkg $PKGSTORE/l/libusb-*.tgz || exit 99 ; } { slackcheckpkgdeps libvisual || installpkg $PKGSTORE/l/libvisual-*.tgz || exit 99 ; } { slackcheckpkgdeps pcre || installpkg $PKGSTORE/l/pcre-*.tgz || exit 99 ; } { slackcheckpkgdeps qt || installpkg $PKGSTORE/l/qt-*.tgz || exit 99 ; } { slackcheckpkgdeps sdl || installpkg $PKGSTORE/l/sdl-*.tgz || exit 99 ; } { slackcheckpkgdeps svgalib || installpkg $PKGSTORE/l/svgalib-*.tgz || exit 99 ; } { slackcheckpkgdeps taglib || installpkg $PKGSTORE/l/taglib-*.tgz || exit 99 ; } { slackcheckpkgdeps taglib-extras || installpkg $PKGSTORE/l/taglib-extras-*.tgz || exit 99 ; } { slackcheckpkgdeps fontconfig || installpkg $PKGSTORE/x/fontconfig-*.tgz || exit 99 ; } { slackcheckpkgdeps libICE || installpkg $PKGSTORE/x/libICE-*.tgz || exit 99 ; } { slackcheckpkgdeps libSM || installpkg $PKGSTORE/x/libSM-*.tgz || exit 99 ; } { slackcheckpkgdeps libX11 || installpkg $PKGSTORE/x/libX11-*.tgz || exit 99 ; } { slackcheckpkgdeps libXau || installpkg $PKGSTORE/x/libXau-*.tgz || exit 99 ; } { slackcheckpkgdeps libXcursor || installpkg $PKGSTORE/x/libXcursor-*.tgz || exit 99 ; } { slackcheckpkgdeps libXdmcp || installpkg $PKGSTORE/x/libXdmcp-*.tgz || exit 99 ; } { slackcheckpkgdeps libXext || installpkg $PKGSTORE/x/libXext-*.tgz || exit 99 ; } { slackcheckpkgdeps libXfixes || installpkg $PKGSTORE/x/libXfixes-*.tgz || exit 99 ; } { slackcheckpkgdeps libXft || installpkg $PKGSTORE/x/libXft-*.tgz || exit 99 ; } { slackcheckpkgdeps libXinerama || installpkg $PKGSTORE/x/libXinerama-*.tgz || exit 99 ; } { slackcheckpkgdeps libXmu || installpkg $PKGSTORE/x/libXmu-*.tgz || exit 99 ; } { slackcheckpkgdeps libXrandr || installpkg $PKGSTORE/x/libXrandr-*.tgz || exit 99 ; } { slackcheckpkgdeps libXrender || installpkg $PKGSTORE/x/libXrender-*.tgz || exit 99 ; } { slackcheckpkgdeps libXt || installpkg $PKGSTORE/x/libXt-*.tgz || exit 99 ; } { slackcheckpkgdeps libXxf86vm || installpkg $PKGSTORE/x/libXxf86vm-*.tgz || exit 99 ; } { slackcheckpkgdeps libdrm || installpkg $PKGSTORE/x/libdrm-*.tgz || exit 99 ; } { slackcheckpkgdeps libxslt || installpkg $PKGSTORE/l/libxslt-*.tgz || exit 99 ; } { slackcheckpkgdeps libxml2 || installpkg $PKGSTORE/l/libxml2-*.tgz || exit 99 ; } { slackcheckpkgdeps libxcb || installpkg $PKGSTORE/x/libxcb-*.tgz || exit 99 ; } { slackcheckpkgdeps mesa || installpkg $PKGSTORE/x/mesa-*.tgz || exit 99 ; } { slackcheckpkgdeps xine-lib || installpkg $PKGSTORE/xap/xine-lib-*.tgz || exit 99 ; } # Launch the package build script: BUILDLOG=$( basename $SLACKPACKAGE .tgz ).build.log ( ./$PKGNAM.SlackBuild ) >& /dev/stdout | tee $BUILDLOG # Compress the build log: bzip2 -9f $BUILDLOG