#!/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 PACKAGE=floppy export PKGSERIES=a export VERSION=5.5 export BUILD=1 export ARCH=arm 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 # tetex binary package is required to build docs: slackcheckpkgdeps tetex || installpkg $PKGSTORE/t/tetex-[0-9]*tgz slackcheckpkgdeps texinfo || installpkg $PKGSTORE/ap/texinfo-*.tgz slackcheckpkgdeps tetex,texinfo || exit 99 # Ensure $PACKAGE isn't already installed: #slackfailpkgdeps $PACKAGE || removepkg $PACKAGE # Launch the package build script: ( ./$PACKAGE.SlackBuild ) 2>&1 | tee build.log # Compress the build log: bzip2 -9f build.log