#!/bin/sh
#
# Copyright 2005 Dagmar d'Surreal <rivyqntzne@tznvy.pbz>
# Available under the terms of the GNU GPL.
#

NAME="gnome-themes"
VERSION="2.14.0"
REVISION="2"

PKG_SOURCEURL='http://ftp.gnome.org/pub/GNOME/sources/$NAME/$VER_MAJ.$VER_MIN/$NAME-$VERSION.tar.bz2'

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

cflags
cxxflags
prepare
analyzesource
configure --enable-all-themes
make
makeinstall install-strip 
# let's have the 2.0 version
removedir $PKG_WORKROOT
createdir $PKG_WORKROOT

PKG_SOURCEURL='http://www.stellingwerff.com/clearlooks-metacity-2.0.tar.gz'

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...
rm -rf $PKG_STAGEROOT$PKG_PREFIX/share/themes/Clearlooks/metacity-1
createdir $PKG_STAGEROOT$PKG_PREFIX/share/themes/Clearlooks
mv $PKG_SRCROOT/metacity-1 $PKG_STAGEROOT$PKG_PREFIX/share/themes/Clearlooks/

tidydocumentation
analyzebinaries
finalizepackage
packagize
cleanup
