#!/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=gnupg export PKGSERIES=n export VERSION=1.4.9 export BUILD=1 export ARCH=arm 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 $PKGNAM isn't already installed: slackfailpkgdeps $PKGNAM || removepkg $PKGNAM # Ensure specific build dependencies (mainly libraries): slackcheckpkgdeps bzip2 || installpkg $PKGSTORE/a/bzip2-*.tgz slackcheckpkgdeps libidn || installpkg $PKGSTORE/l/libidn-*.tgz slackcheckpkgdeps libtermcap || installpkg $PKGSTORE/l/libtermcap-*.tgz slackcheckpkgdeps libusb || installpkg $PKGSTORE/l/libusb-*.tgz slackcheckpkgdeps readline || installpkg $PKGSTORE/l/readline-*.tgz slackcheckpkgdeps curl || installpkg $PKGSTORE/n/curl-*.tgz slackcheckpkgdeps openldap-client || installpkg $PKGSTORE/n/openldap-client-*.tgz slackcheckpkgdeps openssl || installpkg $PKGSTORE/n/openssl-*.tgz slackcheckpkgdeps bzip2,libidn,libtermcap,libusb,readline,curl,openldap-client,openssl || exit 99 # Launch the package build script: ( ./$PKGNAM.SlackBuild ) >& /dev/stdout | tee build.$ARCH.log # Compress the build log: bzip2 -9f build.$ARCH.log