#Maintainer: George Vlahavas (vlahavas~at~gmail~dot~com)

pkgname=zenity
pkgver=3.32.0
pkgrel=1slint
source=("ftp://ftp.gnome.org/pub/GNOME/sources/zenity/3.32/zenity-3.32.0.tar.xz")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "maintainers")
url=www.gnome.org
options=('noautodotnew')

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"zenity (Display graphical dialog boxes from shell scripts)"
"Zenity allows you to display GTK+ dialogs from shell scripts; it is a"
"rewrite of the gdialog command from GNOME 1. Zenity includes a"
"gdialog wrapper script so that it can be used with legacy scripts."
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure --prefix=/usr \
		--libdir=/usr/lib${LIBDIRSUFFIX} \
		--localstatedir=/var \
		--sysconfdir=/etc \
		--enable-libnotify \
		--disable-webkitgtk \
		--build=$arch-slackware-linux
	make || return 1
	make install DESTDIR=$startdir/pkg

	# keep compatibility for matedialog
	(
	 cd $startdir/pkg/usr/bin
	 ln -sf zenity matedialog
	)
} 
