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

# BLFS 7.5 updated to latest git
TARBALL=sane-frontends-20180713.tar.bz2
MD5SUM=c145a56fdf73b39215d951641a4b9871
SRC_URL=http://distro.ibiblio.org/fatdog/source/800/$TARBALL
BUNDLE=

SLACKREQ='gtk2'
SLACKDESC="sane-frontend: sane-frontend $PKGVER (SANE front end)  
sane-frontend:  
sane-frontend: SANE is short for Scanner Access Now Easy. Scanner access; 
sane-frontend: however, is far from easy, since every vendor has their own 
sane-frontend: protocols. The only known protocol that should bring some unity 
sane-frontend: into this chaos is the TWAIN interface, but this is too 
sane-frontend: imprecise to allow a stable scanning framework. Therefore, SANE 
sane-frontend: comes with its own protocol, and the vendor drivers can''t be 
sane-frontend: used. 
sane-frontend: 
sane-frontend: This package contains the UI front-ends.  
"

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/${PKGNAME}* &&
	patch -Np1 -i ../pkg/sane-frontend-msg_win.patch
}

### default pkg_package

### build
pkg_build() {
	cd /tmp/sane*
	pkg_build_autoconf &&
	pkg_build_slackdesc &&

	mkdir -pv /usr/share/{applications,pixmaps}                     &&
	install -v -m644 doc/sane.png xscanimage-icon-48x48-2.png /usr/share/sane &&
	install -m644 ../pkg/xscanimage.desktop /usr/share/applications &&
	ln -svf ../sane/xscanimage-icon-48x48-2.png /usr/share/pixmaps/xscanimage.png
}
 

