#!/bin/bash

# Set initial variables:
CWD=$(pwd)
TMP=${TMP:-/tmp/build-seyon}
export TMP
rm -rf $TMP

# Package info:
PACKAGE=seyon
ARCH=${ARCH:-i486}
BUILD=${BUILD:-3}
PKGVERSION=2.20c

# Store the finished Slackware package .tgz in /tmp:
export PKGSTORE=/tmp

# This will touch nearly every file on your expendable development
# box.  You wouldn't try this on a production system, right?
altertrack \
  --notidy \
  -T $TMP \
  -R $CWD/postbuildfixes.sh \
  --touch-filesystem-first \
  -b $PKGSTORE \
  -OcQp $PACKAGE-$PKGVERSION-$ARCH-$BUILD.tgz ./seyon.build