#!/bin/bash source /usr/share/slackdev/buildkit.sh # Package metadata: export PACKAGE=madplay export VERSION=0.15.2b 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 build dependencies (mainly libraries): slackcheckpkgdeps audiofile || installpkg $PKGSTORE/l/audiofile-*.tgz slackcheckpkgdeps esound || installpkg $PKGSTORE/l/esound-*.tgz slackcheckpkgdeps libid3tag || installpkg $PKGSTORE/l/libid3tag-*.tgz slackcheckpkgdeps libmad || installpkg $PKGSTORE/l/libmad-*.tgz slackcheckpkgdeps audiofile,esound,libid3tag,libmad || exit 99 # Launch the package build script: ( ./$PACKAGE.SlackBuild ) 2>&1 | tee build.log