#!/bin/sh
#
# Copyright 2005 Dagmar d'Surreal <rivyqntzne@tznvy.pbz>
# Available under the terms of the GNU GPL.
#
NAME="dropline-southside"
VERSION="1.4"
REVISION="1"

. $DLG_ROOT/config
. $DLG_ROOT/SCRIPTS/dropline-functions.sh

preparescratchspace

#Southside-icons
PKG_SOURCEURL="http://www.borgerding.org/dropline/paulbest/artwork/southside-icons-1.4.tgz"

findtarball filename
if [ -z "$filename" ]; then
  echo "Unable to locate $PKG_SOURCEURL!  Exiting..."
fi

opentarball $filename

sanifysource $PKG_SRCROOT
spewdo "find $PKG_SRCROOT -type d -exec chmod 755 {} \;"
spewdo "find $PKG_SRCROOT -type f -exec chmod 644 {} \;"
# Just in case...
createdir $PKG_STAGEROOT$PKG_PREFIX/share/icons
mv $PKG_SRCROOT $PKG_STAGEROOT$PKG_PREFIX/share/icons

removedir $PKG_WORKROOT
createdir $PKG_WORKROOT

#Southside-themes
PKG_SOURCEURL="http://www.borgerding.org/dropline/paulbest/artwork/southside-themes-1.4.tgz"

findtarball filename
if [ -z "$filename" ]; then
  echo "Unable to locate $PKG_SOURCEURL!  Exiting..."
fi

opentarball $filename

sanifysource $PKG_SRCROOT
spewdo "find $PKG_SRCROOT -type d -exec chmod 755 {} \;"
spewdo "find $PKG_SRCROOT -type f -exec chmod 644 {} \;"
# Just in case...
createdir $PKG_STAGEROOT$PKG_PREFIX/share/themes
mv $PKG_SRCROOT $PKG_STAGEROOT$PKG_PREFIX/share/themes

removedir $PKG_WORKROOT
createdir $PKG_WORKROOT

# Th-th-th-that's all, folks!
analyzebinaries
includescript
finalizepackage
packagize
cleanup
