#
# Funny stuff needed because the source is a badly built zip archive
#
if [[ $JACKDMP_VCS != y ]]
then
  mkdir -p  "$SOURCE_DIRECTORY"  &&
  cd  "$SOURCE_DIRECTORY"        &&
  unpack_file                    &&
  cd  "${SPELL}_$VERSION"        &&

  sed -i  "s|/usr/local|/usr|"  src/linux/Makefile  &&
  if [[ $JACKDMP_TMPDIR && $JACKDMP_TMPDIR != '/dev/shm' ]]
  then
    sed -i  "s|/dev/shm|$JACKDMP_TMPDIR|"  src/common/JackConstants.h
  fi
else
  default_pre_build
fi
