#!/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 PACKAGE=librsvg export VERSION=2.14.4 export ARCH=arm export BUILD=1 export PKGSERIES=l export SLACKPACKAGE=$PACKAGE-$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 bzip2 || installpkg $PKGSTORE/a/bzip2-*.tgz slackcheckpkgdeps atk || installpkg $PKGSTORE/l/atk-*.tgz slackcheckpkgdeps glib2 || installpkg $PKGSTORE/l/glib2-*.tgz slackcheckpkgdeps gtk+2 || installpkg $PKGSTORE/l/gtk+2-*.tgz slackcheckpkgdeps libart_lgpl || installpkg $PKGSTORE/l/libart_lgpl-*.tgz slackcheckpkgdeps libgsf || installpkg $PKGSTORE/l/libgsf-*.tgz slackcheckpkgdeps libxml2 || installpkg $PKGSTORE/l/libxml2-*.tgz slackcheckpkgdeps pango || installpkg $PKGSTORE/l/pango-*.tgz slackcheckpkgdeps popt || installpkg $PKGSTORE/l/popt-*.tgz slackcheckpkgdeps x11 || installpkg $PKGSTORE/x/x11-*.tgz slackcheckpkgdeps x11-devel || installpkg $PKGSTORE/x/x11-*.tgz slackcheckpkgdeps bzip2,atk,glib2,gtk+2,libart_lgpl,libgsf,libxml2,pango,popt,x11,x11-devel || exit 99 # Launch the package build script: ( ./$PACKAGE.SlackBuild ) >& /dev/stdout | tee build.$ARCH.log # Compress the build log: bzip2 -9f build.$ARCH.log