IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=1.6 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=http://sourceforge.net/projects/hpinkjet/ PKGNAME=hpijs-$VERSION-s390-$BUILD TAG=REC compile() { tar -yxvf $CWD/hpijs-$VERSION.tar.bz2 cd hpijs-$VERSION/ chown -R root.root . find . -perm 664 -exec chmod 644 {} \; find . -perm 600 -exec chmod 644 {} \; find . -perm 444 -exec chmod 644 {} \; find . -perm 400 -exec chmod 644 {} \; find . -perm 440 -exec chmod 644 {} \; find . -perm 777 -exec chmod 755 {} \; find . -perm 775 -exec chmod 755 {} \; find . -perm 511 -exec chmod 755 {} \; find . -perm 711 -exec chmod 755 {} \; find . -perm 555 -exec chmod 755 {} \; # Use -O0 to avoid problems. CFLAGS=-O0 \ ./configure --prefix=/usr \ --build=s390-slackware-linux \ --host=s390-slackware-linux \ --target=s390-slackware-linux make } install() { make install DESTDIR=/package-hpijs mv /package-hpijs/usr/share/doc /package-hpijs/usr/doc } 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 }