# Description: GNOME panel and libpanel-applet library
# Maintainer: Matt Housh, jaeger at morpheus dot net
# Depends on: libgnomeui, gnome-vfs, libglade, libwnck, gnome-desktop, gnome-doc-utils, gnome-menus, evolution-data-server
# Group: gnome

name=gnome-panel
version=2.20.2
release=1
source=(http://download.gnome.org/desktop/2.20/2.20.2/sources/$name-$version.tar.bz2)

build() {
	cd $name-$version
	rm po/*.po
	sed -i -e 's/USE_NLS=yes/USE_NLS=no/' \
		-e 's/ENABLE_NLS 1/ENABLE_NLS 0/' configure
	find . -name "Makefile.in" -exec \
		sed -i -e 's/scrollkeeper-update/echo s-u/' '{}' \;
	./configure --prefix=/usr \
		--mandir=/usr/man \
		--libexecdir=/usr/lib/$name \
		--localstatedir=/var/lib \
		--disable-gtk-doc \
		--disable-schemas-install
	make
	make DESTDIR=$PKG install
	rm -rf $PKG/usr/share/gtk-doc
}
