#!/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=udev export VERSION=${VERSION:-153} export PKGARCH=${PKGARCH:-arm} export BUILD=${BUILD:-1} export PKGSERIES=${PKGSERIES:-a} export SLACKPACKAGE=$PKGNAM-$VERSION-$PKGARCH-$BUILD.tgz # Ensure base ARM packages are installed first: slackbasedeps # Deps: { slackcheckpkgdeps acl || installpkg $PKGSTORE/a/acl-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps attr || installpkg $PKGSTORE/a/attr-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps glib2 || installpkg $PKGSTORE/l/glib2-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps libusb || installpkg $PKGSTORE/l/libusb-[0-9]*.t?z || 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