#!/bin/bash source /usr/share/slackdev/buildkit.sh # Package metadata: export PKGNAM=cscope export VERSION=15.9 export BUILD=4 export PKGSERIES=d export SLACKPACKAGE=$PKGNAM-$VERSION-$ARCH-$BUILD.txz # Ensure base ARM packages are installed first: slackbasedeps # Ensure build dependencies (mainly libraries): { slackcheckpkgdeps ncurses || installpkg $PKGSTORE/l/ncurses-[0-9]*.t?z || exit 99; } # Ensure $PKGNAM isn't already installed: slackfailpkgdeps $PKGNAM || removepkg $PKGNAM # Launch the package build script: BUILDLOG=$SLKPORTARCH-$( basename $SLACKPACKAGE .t?z ).build.log ( ./$PKGNAM.SlackBuild ) >& /dev/stdout | tee $BUILDLOG # Compress the build log: bzip2 -9fvz $BUILDLOG