#!/bin/bash # .SlackBuild # Heavily based on the original Slackware build scripts, # Modified by Stuart Winter # Please see changelog.txt for revisions to this package's build script history. source /usr/share/slackdev/buildkit.sh # Package metadata: export PKGNAM=tetex export PKGSERIES=t export VERSION=3.0 export BUILD=3 export ARCH=arm export SLACKPACKAGE=$PKGNAM-$VERSION-$ARCH-$BUILD.tgz # Reset the ARM file system: restore it to the 'factory settings' # as it were: sboxsysrestore # Ensure base ARM packages are installed first: slackbasedeps # Ensure $PKGNAM isn't already installed: slackfailpkgdeps $PKGNAM || removepkg $PKGNAM slackfailpkgdeps ${PACKAGE}-docs || removepkg ${PACKAGE}-docs # Ensure additional dependencies: { slackcheckpkgdeps util-linux-ng || installpkg $PKGSTORE/a/util-linux-ng-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps freetype || installpkg $PKGSTORE/l/freetype-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps lesstif || installpkg $PKGSTORE/l/lesstif-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps libpng || installpkg $PKGSTORE/l/libpng-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps t1lib || installpkg $PKGSTORE/l/t1lib-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps libICE || installpkg $PKGSTORE/x/libICE-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps libSM || installpkg $PKGSTORE/x/libSM-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps libX11 || installpkg $PKGSTORE/x/libX11-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps libXau || installpkg $PKGSTORE/x/libXau-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps libXdmcp || installpkg $PKGSTORE/x/libXdmcp-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps libXext || installpkg $PKGSTORE/x/libXext-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps libXmu || installpkg $PKGSTORE/x/libXmu-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps libXp || installpkg $PKGSTORE/x/libXp-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps libXpm || installpkg $PKGSTORE/x/libXpm-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps libXt || installpkg $PKGSTORE/x/libXt-[0-9]*.t?z || exit 99; } { slackcheckpkgdeps libxcb || installpkg $PKGSTORE/x/libxcb-[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