#!/bin/bash source /usr/share/slackdev/buildkit.sh # Package metadata: export PKGNAM=vorbis-tools export PKGSERIES=ap export VERSION=1.2.0 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 $PKGNAM isn't already installed: slackfailpkgdeps $PKGNAM || removepkg $PKGNAM # Ensure build dependencies: { slackcheckpkgdeps flac || installpkg $PKGSTORE/ap/flac-*.tgz || exit 99 ; } { slackcheckpkgdeps libao || installpkg $PKGSTORE/l/libao-*.tgz || exit 99 ; } { slackcheckpkgdeps libogg || installpkg $PKGSTORE/l/libogg-*.tgz || exit 99 ; } { slackcheckpkgdeps libvorbis || installpkg $PKGSTORE/l/libvorbis-*.tgz || exit 99 ; } { slackcheckpkgdeps curl || installpkg $PKGSTORE/n/curl-*.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