#!/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 PKGNAM=glib2 export VERSION=${VERSION:-2.22.5} export PKGARCH=${PKGARCH:-arm} export BUILD=${BUILD:-1} export PKGSERIES=${PKGSERIES:-l} export SLACKPACKAGE=$PKGNAM-$VERSION-$PKGARCH-$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 $PKGNAM isn't already installed: slackfailpkgdeps $PKGNAM || removepkg $PKGNAM # Dependencies: { slackcheckpkgdeps gamin || installpkg $PKGSTORE/l/gamin-[0-9]*.t?z || exit 99; } # Launch the package build script: BUILDLOG=$( basename $SLACKPACKAGE .tgz ).build.log ( ./$PKGNAM.SlackBuild ) >& /dev/stdout | tee $BUILDLOG # Compress the build log: bzip2 -9f $BUILDLOG