### this file is sourced not run
PKGVER=2.3.5
PKGBUILD=1
PKGARCH=noarch

# source: james
TARBALL=Xdialog-$PKGVER.tar.bz2
MD5SUM=9b427789742db2fb3080fadf24b073bb
SRC_URL=http://distro.ibiblio.org/fatdog/source/900/$TARBALL
BUNDLE=

SLACKREQ='' # gtk2 build time only
SLACKDESC="xdialog-doc: xdialog-doc $PKGVER (UI for shell scripts)  
xdialog-doc:  
xdialog-doc: Xdialog is designed to be a drop in replacement for the \"dialog\" or 
xdialog-doc: \"cdialog\" programs. It converts any terminal based program into a 
xdialog-doc: program with an X-windows interface. 
xdialog-doc: 
xdialog-doc: This package contains the doc and NLS applicable for both gtk2
xdialog-doc: or gtk3 version, as well as the gfontsel/gcolorsel scripts.
xdialog-doc: 
xdialog-doc: http://chiselapp.com/user/jamesbond/repository/xdialog/index
xdialog-doc: 
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {	
	export LDFLAGS="$LDFLAGS -Wl,--as-needed"
	CONFFLAGS="$CONFFLAGS --with-gtk2"
	MAKEFLAGS="" # cannot run parallel jobs

	cd /tmp/Xdialog* &&
	#autoreconf -fi &&	
	pkg_build_autoconf && pkg_build_slackdesc &&
	rm /usr/bin/Xdialog && # we don't want the binary
	
	# install additional docs and bins
	cp -a samples /usr/share/doc/Xdialog-$PKGVER &&
	install -m 755 /tmp/pkg/g*sel /usr/bin
}


