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

NAME="gnome-menus"
VERSION="2.28.0.1"
REVISION="1"

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

PKG_PATCH[0]="gnome-menus-2.26.0-dlgfixes.patch"

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

cflags
cxxflags
prepare
applypatch 0 1
analyzesource
configure
make
makecheck
makeinstall install-strip

# Rename the applications.menu
spewdo "mv $PKG_STAGEROOT$PKG_SYSCONFDIR/xdg/menus/applications.menu \
	$PKG_STAGEROOT$PKG_SYSCONFDIR/xdg/menus/gnome-applications.menu"

# Rename the preferences.menu
spewdo "mv $PKG_STAGEROOT$PKG_SYSCONFDIR/xdg/menus/preferences.menu \
	$PKG_STAGEROOT$PKG_SYSCONFDIR/xdg/menus/gnome-preferences.menu"

# Rename the settings.menu
spewdo "mv $PKG_STAGEROOT$PKG_SYSCONFDIR/xdg/menus/settings.menu \
	$PKG_STAGEROOT$PKG_SYSCONFDIR/xdg/menus/gnome-settings.menu"

tidydocumentation
analyzebinaries
finalizepackage
packagize
cleanup
