#!/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=cdrdao export VERSION=1.2.1 export ARCH=arm export BUILD=1 export PKGSERIES=ap 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 libao || installpkg $PKGSTORE/l/libao-*.tgz slackcheckpkgdeps libmad || installpkg $PKGSTORE/l/libmad-*.tgz slackcheckpkgdeps libogg || installpkg $PKGSTORE/l/libogg-*.tgz slackcheckpkgdeps libvorbis || installpkg $PKGSTORE/l/libvorbis-*.tgz slackcheckpkgdeps libao,libmad,libogg,libvorbis || exit 99 # Launch build script via the uname faker. export LD_PRELOAD=/usr/lib/libfakeunamearmv3l.so ( ./$PACKAGE.SlackBuild ) >& /dev/stdout | tee build.$ARCH.log # Compress the build log: bzip2 -9f build.$ARCH.log