#!/bin/bash source /usr/share/slackdev/buildkit.sh # Package metadata: export PKGNAM=mpg321 export PKGSERIES=ap export VERSION=0.2.10 export BUILD=1 export ARCH=arm 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 build dependencies: { slackcheckpkgdeps libao || installpkg $PKGSTORE/l/libao-*.tgz || exit 99 ; } { slackcheckpkgdeps libid3tag || installpkg $PKGSTORE/l/libid3tag-*.tgz || exit 99 ; } { slackcheckpkgdeps libmad || installpkg $PKGSTORE/l/libmad-*.tgz || exit 99 ; } # Launch the package build script: ( ./$PKGNAM.SlackBuild ) >& /dev/stdout | tee build.$ARCH.log # Compress the build log: bzip2 -9f build.$ARCH.log