#!/bin/bash source /usr/share/slackdev/buildkit.sh # Package metadata: export PKGNAM=flac export VERSION=${VERSION:-1.4.3} export BUILD=${BUILD:-1} export PKGSERIES=${PKGSERIES:-ap} slack_var_pkgseries # If building in /patches for a Stable Release, we drop the packages into /tmp/patches/ slack_findpkgstore_is_stablerelease && { export PKGSTORE=/tmp/ export PKGSERIES=/patches/ export BUILD=${BUILD:-1_slack15.0} mkdir -vpm755 $PKGSTORE/$PKGSERIES ;} # Set package name: export SLACKPACKAGE=$PKGNAM-$VERSION-$PKGARCH-$BUILD.txz # Ensure base ARM packages are installed first: slackbasedeps # Ensure $PKGNAM isn't already installed: slackfailpkgdeps $PKGNAM || removepkg $PKGNAM # Ensure build dependencies (mainly libraries): { slackcheckpkgdeps libogg || installpkg $PKGSTORE/l/libogg-*.t?z || exit 99 ; } { slackcheckpkgdeps xmms || installpkg $PKGSTORE/xap/xmms-*.t?z || exit 99 ; } # Launch the package build script: BUILDLOG=$SLKPORTARCH-$( basename $SLACKPACKAGE .t?z ).build.log ( ./$PKGNAM.SlackBuild ) >& /dev/stdout | tee $BUILDLOG # Compress the build log: bzip2 -9fvz $BUILDLOG