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

# 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='cups32 libijs32'
SLACKDESC="gutenprint32: gutenprint32 $PKGVER (Gutenprint printer drivers)  
gutenprint32:  
gutenprint32: The Gutenprint (formerly Gimp-Print) package contains high quality 
gutenprint32: drivers for many brands and models of printers for use with 
gutenprint32: ghostscript-9.07, Cups-1.6.3, Foomatic, and the GIMP-2.0. See a 
gutenprint32: list of supported printers at 
gutenprint32: http://gutenprint.sourceforge.net/p_Supported_Printers.php.  
gutenprint32: 
gutenprint32: This contains 32-bit version of the library.
gutenprint32: 
gutenprint32:
"

### default pkg_download
### default pkg_prepare
### package - only collect the libraries
pkg_package() {
	rm -rf etc bin sbin usr/bin usr/sbin usr/include usr/share
}

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


