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

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

SLACKREQ='gtk2'
SLACKDESC='sane-frontend: sane-frontend 2015.05 (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. This package contains the UI front-ends.  
sane-frontend: 
sane-frontend:
'

### 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 &&

	install -v -m644 doc/sane.png xscanimage-icon-48x48-2.png \
    /usr/share/sane &&
    
	mkdir -pv /usr/share/{applications,pixmaps}               &&
	cat > /usr/share/applications/xscanimage.desktop << "EOF" &&
[Desktop Entry]
Encoding=UTF-8
Name=XScanImage - Scanning
Comment=Acquire images from a scanner
Exec=xscanimage
Icon=xscanimage
Terminal=false
Type=Application
Categories=Application;Graphics
EOF
	ln -svf ../sane/xscanimage-icon-48x48-2.png /usr/share/pixmaps/xscanimage.png
}


