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

# source: BLFS 7.5 updated to 5.2.10
TARBALL=gutenprint-$PKGVER.tar.bz2
MD5SUM=9ff027103bafac419c37e19da75163ae 
SRC_URL=http://downloads.sourceforge.net/gimp-print/$TARBALL
BUNDLE=

SLACKREQ='cups libijs'
SLACKDESC="gutenprint: gutenprint $PKGVER (Gutenprint printer drivers)  
gutenprint:  
gutenprint: The Gutenprint (formerly Gimp-Print) package contains high quality 
gutenprint: drivers for many brands and models of printers for use with 
gutenprint: ghostscript-9.07, Cups-1.6.3, Foomatic, and the GIMP-2.0. See a 
gutenprint: list of supported printers at 
gutenprint: http://gutenprint.sourceforge.net/p_Supported_Printers.php.  
gutenprint: 
gutenprint: 
gutenprint: 
gutenprint:
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/gutenprint*
	sed -i 's|$(PACKAGE)/doc|doc/$(PACKAGE)-$(VERSION)|' \
       {,doc/,doc/developer/}Makefile.in &&
	CONFFLAGS="$CONFFLAGS --disable-static"
	pkg_build_autoconf && pkg_build_slackdesc &&
	install -v -m755 -d /usr/share/doc/gutenprint-$PKGVER/api/gutenprint{,ui2} &&
	install -v -m644    doc/gutenprint/html/* \
						/usr/share/doc/gutenprint-$PKGVER/api/gutenprint &&
	install -v -m644    doc/gutenprintui2/html/* \
						/usr/share/doc/gutenprint-$PKGVER/api/gutenprintui2
}


