#!/bin/sh # Set initial variables: CWD=`pwd` if [ "$TMP" = "" ]; then TMP=/tmp fi VERSION=1.12 CWD=`pwd` if [ ! -d $TMP ]; then mkdir -p $TMP # location to build the source fi cd $TMP rm -rf slacktrack tar -zxvf $CWD/slacktrack-$VERSION-source.tar.gz cd slacktrack/ cat $CWD/slacktrack.SlackBuild.diff | patch -p1 --backup --suffix=.orig # Start the "real" SlackBuild: ./slacktrack.SlackBuild