#Maintainer: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=poedit
pkgver=1.5.4
pkgrel=1rl
source=("http://prdownloads.sourceforge.net/poedit/poedit-$pkgver.tar.gz" "poedit-1.5.3-destdir.patch")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
url=http://www.poedit.net

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"poedit (cross-platform gettext catalogs (.po files) editor)"
"Poedit aims to provide more convenient approach to editing catalogs"
"than launching vi and editing the file by hand."
)


build() {
	cd $startdir/src/$pkgname-$pkgver

	patch -p1 < $startdir/src/poedit-1.5.3-destdir.patch || exit 1
	
	./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --build=$arch-slackware-linux
	make || return 1
	make install DESTDIR=$startdir/pkg
	sed -i "s/.png//" $startdir/pkg/usr/share/applications/poedit.desktop
}