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

pkgname=meld
pkgver=3.20.4
_mainver=`echo $pkgver | cut -d'.' -f1,2`
pkgrel=1gv
source=(https://download.gnome.org/sources/meld/${_mainver}/meld-${pkgver}.tar.xz)
docs=("copying" "authors" "install" "news" "maintainers")
url=http://meldmerge.org/

doinst() {
# update the mime desktop database
if [ -x /usr/bin/update-desktop-database ]; then
	/usr/bin/update-desktop-database -q
fi
# update the mime database
if [ -x /usr/bin/update-mime-database ]; then
	/usr/bin/update-mime-database usr/share/mime > /dev/null 2>&1
fi
# compile schemas
if [ -x usr/bin/glib-compile-schemas ]; then
	usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas
fi
}



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
	python3 setup.py \
		--no-update-icon-cache \
		--no-compile-schemas \
		install \
		--prefix=/usr \
		--root=$startdir/pkg
} 
