#!/bin/bash # Paths to skeleton port's source & real Slackware source tree: #export CWD=$SLACKSOURCE/../extra/source/slacktrack # Always take from -current: export CWD=$HOME/slackware-current/extra/source/slacktrack export PORTCWD=$PWD # Temporary build locations: export TMPBUILD=$TMP/build-$PKGNAM export PKG=$TMP/package-$PKGNAM mkpkgdirs # Delete & re-create temporary directories then cd into $TMPBUILD # Extract source: tar xvvf $CWD/$PKGNAM-$VERSION-source.tar.gz cd $PKGNAM # Delete old package: if [ "${DELETEOLDPKGS}" = "Yes" ]; then rm -f $PKGSTORE/$PKGSERIES/$PKGNAM-*.{tgz,txt}; fi # Launch real build script: PKGEXT=tgz PKGSTORE=$PKGSTORE/$PKGSERIES ./slacktrack.SlackBuild