### this file is sourced not run
PKGVER=0.999
PKGBUILD=1
PKGARCH=x86_64

# BLFS 7.5
TARBALL=xsane-0.999.tar.gz
MD5SUM=9927f21e1ab6ba96315e7f0e30746deb 
SRC_URL=http://www.xsane.org/download/$TARBALL
BUNDLE=

SLACKREQ='gtk2 sane-backend'
SLACKDESC='xsane: xsane 0.999 (SANE GUI)  
xsane:  
xsane: XSane is another front end for SANE-1.0.24. It has additional features 
xsane: to improve the image quality and ease of use compared to xscanimage 
xsane: (from sane-frontend package).  
xsane: 
xsane: 
xsane: 
xsane: 
xsane: 
xsane:  
'

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/xsane*
	sed -i -e 's/png_ptr->jmpbuf/png_jmpbuf(png_ptr)/' src/xsane-save.c &&
	sed -i -e 's/!getuid()/0/' src/xsane.c &&
	./configure $CONFFLAGS && make $MAKEFLAGS && 
	make xsanedocdir=/usr/share/doc/xsane-0.999 install &&
	ln -v -s ../../doc/xsane-0.999 /usr/share/sane/xsane/doc &&
	pkg_build_slackdesc
}


