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

NAME="gnome-desktop"
VERSION="2.28.0"
REVISION="1"

DISTRIBUTOR="Dropline GNOME"

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

PKG_PATCH[0]='gnome-desktop-2.22.3-toddcontrib.patch'

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

cflags
cxxflags
prepare
applypatch 0 1
analyzesource
configure --with-gnome-distributor=Dropline_Systems
make
makeinstall install-strip
sed -i "s/<distributor>.*<\/distributor>/<distributor>$DISTRIBUTOR<\/distributor>/g; s/<date>.*<\/date>/<date>$RELEASE_DATE<\/date>/g" $PKG_STAGEROOT$PKG_PREFIX/share/gnome-about/gnome-version.xml
if [ $? != 0 ]; then
  die "Failed to sed gnome-version.xml"
fi

tidydocumentation
analyzebinaries
finalizepackage
packagize
cleanup
