#!/bin/bash

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

# Paths to skeleton port's source & real Slackware source tree:
export CWD=$SLACKSOURCE/l/libtermcap
export PORTCWD=$PWD

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

# 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${PBLOGS}/${PACKAGE}.log \
           -b${PKGSTORE}/${PKGSERIES} \
           -OcQp ${SLACKPACKAGE} ./${PACKAGE}.build ${VERSION}
