#!/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=lynx export VERSION=2.8.7 export ARCH=arm export BUILD=1 export PKGSERIES=n export SLACKPACKAGE=$PKGNAM-$VERSION-$ARCH-$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 ncurses || installpkg $PKGSTORE/l/ncurses-*.tgz slackcheckpkgdeps openssl || installpkg $PKGSTORE/n/openssl-*.tgz slackcheckpkgdeps zlib || installpkg $PKGSTORE/l/zlib-*.tgz slackcheckpkgdeps bzip2 || installpkg $PKGSTORE/a/bzip2-*.tgz slackcheckpkgdeps gpm || installpkg $PKGSTORE/a/gpm-*.tgz slackcheckpkgdeps ncurses,zlib,openssl,bzip2,gpm || 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