#!/bin/bash source /usr/share/slackdev/buildkit.sh # Package metadata: export PACKAGE=glib export VERSION=1.2.10 export BUILD=1 export ARCH=arm export PKGSERIES=l export SLACKPACKAGE=${PACKAGE}-${VERSION}-${ARCH}-${BUILD}.tgz # Reset the ARM file system: restore it to the 'factory settings' # as it were: sboxsysrestore # Ensure base ARM packages are installed first: slackbasedeps # Ensure $PACKAGE isn't already installed: slackfailpkgdeps $PACKAGE || removepkg $PACKAGE # Launch the package build script: #( ./$PACKAGE.SlackBuild ) >& /dev/stdout | tee build.$ARCH.log ./trackbuild.$PACKAGE # Compress the build log: bzip2 -9f build.$ARCH.log