IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=1.4.1 PROGNAME="hpijs $VERSION" DESC="\ hpijs (Hewlett-Packard inkjet drivers for Ghostscript) \n\ \n\ The Hewlett-Packard Inkjet Driver Project (HPIJS) is a add-on printer \n\ driver for GNU Ghostscript. There are two parts to the IJS interface: \n\ the IJS client that resides in GNU Ghostscript, and the IJS server \n\ (in this package). HPIJS runs as a server or co-process to GNU \n\ Ghostscript. The server is spawned automatically by GNU Ghostscript. \n\ \n\ There are currently more than 80 HP inkjet printer models supported \n\ with HPIJS." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.gnu.org/pub/gnu/hpijs PKGNAME=hpijs-$VERSION-s390-$BUILD TAG=REC compile() { tar -zxvf $CWD/hpijs-$VERSION.tar.gz cd hpijs-$VERSION/ cat $CWD/makefile.in.diff | patch -p1 --backup --suffix=.orig # Use -O0 to avoid problems. CFLAGS=-O0 ./configure --prefix=/usr \ --build=s390-slackware-linux \ --host=s390-slackware-linux \ --target=s390-slackware-linux make } install() { mkdir -p /package-hpijs/usr/lib/cups/filter \ /package-hpijs/usr/share/cups/model make install DESTDIR=/package-hpijs mv /package-hpijs/usr/share/doc /package-hpijs/usr/doc rmdir /package-hpijs/usr/share } attributes() { chown -R root.bin $PKG/package-hpijs/usr/bin/ } special() { cd $PKG mv package-hpijs/* ./ rmdir package-hpijs cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-hpijs/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }