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

# source: james
TARBALL=Xdialog-gtk3-$PKGVER.tar.bz2
MD5SUM=bc9353a4d9e1a84d772fd35c41edb37b
SRC_URL=http://distro.ibiblio.org/fatdog/source/800/$TARBALL
BUNDLE=

SLACKREQ='' # gtk2 build time only
SLACKDESC="xdialog-doc: xdialog-doc 2.3.2-$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
	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-2.3.2 &&
	install -m 755 /tmp/pkg/g*sel /usr/bin
}


