#Maintainer: George Vlahavas <vlahavas~at~gmail~dot~com>
#Previous Maintainer: Maximus (maximuus@gmail.com>

pkgname=meld
pkgver=1.5.0
pkgrel=1gv
source=(http://ftp.gnome.org/pub/gnome/sources/meld/1.5/meld-1.5.0.tar.gz)
docs=("copying" "authors" "install" "news" "maintainers")
url=http://http://meld.sourceforge.net/index.html

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"$pkgname (a visual diff and merge tool)"
"Meld is a visual diff and merge tool. You can compare two or three"
"files and edit them in place (diffs update dynamically). You can"
"compare two or three folders and launch file comparisons. You can"
"browse and view a working copy from popular version control systems"
"such such as CVS, Subversion, Bazaar-ng and Mercurial."
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	make prefix=/usr libdir=/usr/lib${LIBDIRSUFFIX}
	make prefix=/usr libdir=/usr/lib${LIBDIRSUFFIX} install DESTDIR=$startdir/pkg
	
	#fix icon placement
	mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps
	mv $startdir/pkg/usr/share/pixmaps/meld.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps/
	rm -rf $startdir/pkg/usr/share/pixmaps
	
	#remove empty doc directory
	rm -rf $startdir/pkg/usr/share/doc
}