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

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

PKG_SOURCEURL='ftp://ftp.gnome.org/mirror/gnome.org/sources/$NAME/$VER_MAJ.$VER_MIN/$NAME-$VERSION.tar.xz'

# Adds prefix "gnome-" to the default applications menu file. The patch from Debian GNU/Linux.
PKG_PATCH[0]="01_default_prefix.patch"

. $DLG_ROOT/etc/config
. $DLG_ROOT/lib/dl-base

cflags
prepare

applypatch 0 1

analyzesource
configure --disable-debug
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"

tidydocumentation
analyzebinaries
finalizepackage
packagize
cleanup
