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

# source: BLFS 11.3
TARBALL=gutenprint-$PKGVER.tar.xz
MD5SUM=dc208cfb873f13a93439185c15aa6f81
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*

	# BLFS 11.3: make versioned versioned
	sed -i 's|$(PACKAGE)/doc|doc/$(PACKAGE)-$(VERSION)|' \
		   {,doc/,doc/developer/}Makefile.in &&
       
	CONFFLAGS="$CONFFLAGS --disable-static"
	pkg_build_autoconf && pkg_build_slackdesc &&

	# install docs - not for 32-bit libs
	#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} &&
	true
}

