#!/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=tigervnc export VERSION=${VERSION:-1.12.0} export BUILD=${BUILD:-5_slack15.0} slack_var_pkgseries # Set package name: export SLACKPACKAGE=$PKGNAM-$VERSION-$PKGARCH-$BUILD.txz # Ensure specific build dependencies (mainly libraries): { slackcheckpkgdeps fltk || installpkg $PKGSTORE/../extra/fltk/fltk-[0-9]*.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 # Remove this - don't want things in the main tree linking against it: #removepkg fltk