#!/bin/bash

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

# Package info:
PACKAGE=hfsutils
ARCH=${ARCH:-powerpc}
BUILD=${BUILD:-5}
PKGVERSION=3.2.6
export PKGVERSION

# 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 \
  --gzman \
  -b $PKGSTORE \
  -OcQp $PACKAGE-$PKGVERSION-$ARCH-$BUILD.tgz ./hfsutils.build

