# SliTaz package receipt.

PACKAGE="poedit"
VERSION="1.4.6.1"
CATEGORY="development"
SHORT_DESC="Editor for i18n po files."
MAINTAINER="pankso@slitaz.org"
DEPENDS="xorg wxWidgets pango gettext libdb xorg-libXdamage xorg-libXxf86vm \
gtkspell"
BUILD_DEPENDS="wxWidgets-dev gettext"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.poedit.net/"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure --prefix=/usr --infodir=/usr/share/info \
	--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/pixmaps $fs/usr/share
	cp -a $_pkg/usr/share/poedit $fs/usr/share
    	cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale
}