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

pkgname=Xdialog
pkgver=2.3.1
pkgrel=1gv
arch=i486
source=(http://xdialog.free.fr/Xdialog-2.3.1.tar.bz2)
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "about-nls" "bugs")
url=http://xdialog.free.fr/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"Xdialog (X replacement for the \"dialog\" program)"
"Xdialog is designed to be a drop in replacement for the \"dialog\" or"
"\"cdialog\" programs. It converts any terminal based program into a"
"program with an X-windows interface. The dialogs are easier to see and"
"use while adding even more functionalities (e.g. with the treeview,"
"the file selector, the edit box, the range box, the help button/box)."
"Because Xdialog uses GTK+, it will also match your desktop theme."
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --disable-gtktest --with-gtk2
	make || return 1
	make install DESTDIR=$startdir/pkg
}