# SliTaz package receipt.

PACKAGE="mousepad"
VERSION="0.2.16"
CATEGORY="x-window"
SHORT_DESC="Xfce Text Editor"
MAINTAINER="erjo@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="http://www.xfce.org/"
WGET_URL="http://archive.xfce.org/src/apps/$PACKAGE/${VERSION%.*}/$TARBALL"

DEPENDS="libxfcegui4 libxfce4util startup-notification xorg-libXdamage util-linux-ng-uuid"
BUILD_DEPENDS="libxfcegui4-dev libxfce4util-dev intltool startup-notification-dev
 util-linux-ng-uuid-dev"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure --prefix=/usr \
		--enable-debug=no \
		--mandir=/usr/share/man $CONFIGURE_ARGS && \
	make && make DESTDIR=$PWD/_pkg install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/share/locale
	
	cp -a $_pkg/usr/bin $fs/usr
	cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale
	cp -a $_pkg/usr/share/pixmaps $fs/usr/share
	cp -a $_pkg/usr/share/applications $fs/usr/share
}