#!/bin/bash

#######################################################################
# Program: trackbuild.autoconf2.13
# Purpose: Build the autoconf2.13 package for ARMedSlack
# Author : Stuart Winter <stuart@armedslack.org>
#######################################################################

# Paths to skeleton port's source & real Slackware source tree:
export PORTCWD=$PWD

# Ensure slacktrack is installed:
which slacktrack >/dev/null 2>&1 || { echo "slacktrack not installed.  Cannot build without it" ; exit 1 ;}

# Ensure base ARM packages are installed first:
slackbasedeps

# If specified in slackdev.config, we'll delete the old copy of the
# package from our package store.
if [ "${DELETEOLDPKGS}" = "Yes" ]; then
   rm -f $PKGSTORE/$PKGSERIES/$PACKAGE-*.{tgz,txt}
fi

slacktrack ${ALTERTRACKOPTS} \
           -l${PORTCWD}/build.log \
           -b${PKGSTORE}/${PKGSERIES} \
           -OcQp ${SLACKPACKAGE} ./${PACKAGE}.build ${VERSION}
