#!/bin/bash # arm/build # Check package dependencies, set metadata and launch # package build script. # by Stuart Winter # source /usr/share/slackdev/buildkit.sh export PKGNAM=aspell-dict export VERSION=${VERSION:-NOVER} # versions are set by the file name of the dict archives export PKGARCH=${PKGARCH:-noarch} export BUILD=${BUILD:-1} export PKGSERIES=${PKGSERIES:-l} export SLACKPACKAGE=$PKGNAM-$VERSION-$PKGARCH-$BUILD.tgz # Ensure base ARM packages are installed first: slackbasedeps # Ensure additional dependencies: # aspell is required to generate the dictionary files and aspell # requires ncurses: slackcheckpkgdeps aspell || installpkg $PKGSTORE/l/aspell-*arm*.tgz slackcheckpkgdeps ncurses || installpkg $PKGSTORE/l/ncurses-*arm*.tgz slackcheckpkgdeps aspell,ncurses || 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