#!/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=perl export VERSION=${VERSION:-5.10.1} export PKGARCH=${PKGARCH:-arm} export BUILD=${BUILD:-1} export PKGSERIES=${PKGSERIES:-d} export SLACKPACKAGE=$PKGNAM-$VERSION-$PKGARCH-$BUILD.tgz # Ensure base ARM packages are installed first: #slackbasedeps # We need to remove the existing Perl first: # (note that this will delete the Perl libraries installed by other # packages -- so only do this on a devbox and don't build this package # simultaneously). # You probably don't *need* to rm -rf /usr/lib/perl* but I prefer it. slackfailpkgdeps perl || removepkg perl && rm -rf /usr/lib/perl* # Ensure package build dependencies are met: { slackcheckpkgdeps mysql || installpkg $PKGSTORE/ap/mysql-*.tgz || exit 99 ; } { slackcheckpkgdeps db44 || installpkg $PKGSTORE/l/db44-*.tgz || exit 99 ; } { slackcheckpkgdeps expat || installpkg $PKGSTORE/l/expat-*.tgz || exit 99 ; } { slackcheckpkgdeps gdbm || installpkg $PKGSTORE/l/gdbm-*.tgz || exit 99 ; } { slackcheckpkgdeps openssl || installpkg $PKGSTORE/n/openssl-*.tgz || 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