IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=4.2.6 PROGNAME="gimp-print $VERSION" DESC="\ gimp-print (IJS printer driver for Ghostscript and CUPS) \n\ \n\ Gimp-Print is the print facility for the Gimp, and in addition a suite \n\ of drivers that may be used with common UNIX spooling systems using \n\ Ghostscript or CUPS. These drivers provide printing quality for Linux \n\ in many cases equal to or better than proprietary vendor-supplied \n\ drivers, and can be used for many of the most demanding printing \n\ tasks." BUILD=1 MAINTAINER="Mark Post " SOURCE=http://sourceforge.net/projects/gimp-print/ PKGNAME=gimp-print-$VERSION-s390-$BUILD TAG=OPT compile() { # Let GIMP use the plug-in it comes with or it's a messy dependancy. # This comes with some ghostscript patches that already seem to be # built into ghostscript now :-) tar -yxvf $CWD/gimp-print-$VERSION.tar.bz2 cd gimp-print-$VERSION/ ./configure --prefix=/usr \ --infodir=/usr/info \ --with-ijs \ --with-cups \ --without-gimp \ --without-samples \ --without-user-guide \ --enable-escputil \ --disable-static \ --disable-nls \ s390-slackware-linux make } install() { make install DESTDIR=/package-gimp-print mkdir -p /package-gimp-print/usr/doc/gimp-print-$VERSION cp -a ABOUT-NLS AUTHORS COPYING NEWS README \ /package-gimp-print/usr/doc/gimp-print-$VERSION cp -a src/ghost/README /package-gimp-print/usr/doc/gimp-print-$VERSION/README.ghostscript ( cd /package-gimp-print/usr/info rm -f *.gz gzip -9 * ) ( cd /package-gimp-print/usr/man for dir in 1 3 7 8; do ( cd man$dir rm -f *.gz gzip -9 *.$dir ) done ) rm -rf /package-gimp-print/usr/lib/gimp \ /package-gimp-print/usr/share/gimp-print } attributes() { chown -R root.bin $PKG/package-gimp-print/usr/bin/ } special() { cd $PKG mv package-gimp-print/* ./ rmdir package-gimp-print cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-gimp-print/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }