#!/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=nfs-utils export VERSION=${VERSION:-1.2.3} export PKGARCH=${PKGARCH:-arm} export BUILD=${BUILD:-4} export PKGSERIES=${PKGSERIES:-n} export SLACKPACKAGE=$PKGNAM-$VERSION-$PKGARCH-$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 specific build dependencies (mainly libraries): slackcheckpkgdeps kernel-headers || installpkg $PKGSTORE/d/kernel-headers-*.tgz slackcheckpkgdeps kernel-headers || exit 99 # ALso needs: # n/tcp_wrappers # Launch the package build script: BUILDLOG=$( basename $SLACKPACKAGE .tgz ).build.log ( ./$PKGNAM.SlackBuild ) >& /dev/stdout | tee $BUILDLOG # Compress the build log: bzip2 -9fvz $BUILDLOG