#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-a2ps cd $TMP tar xzf $CWD/psutils-1.17.tar.gz cd psutils zcat $CWD/psutils-1.17.diff.gz | patch -p1 make -f Makefile.unix make -f Makefile.unix install mkdir -p $PKG/usr/bin cat psbook > $PKG/usr/bin/psbook cat psselect > $PKG/usr/bin/psselect cat pstops > $PKG/usr/bin/pstops cat epsffit > $PKG/usr/bin/epsffit cat psnup > $PKG/usr/bin/psnup cat psresize > $PKG/usr/bin/psresize cat fixfmps > $PKG/usr/bin/fixfmps cat fixmacps > $PKG/usr/bin/fixmacps cat fixpsditps > $PKG/usr/bin/fixpsditps cat fixpspps > $PKG/usr/bin/fixpspps cat fixtpps > $PKG/usr/bin/fixtpps cat fixwfwps > $PKG/usr/bin/fixwfwps cat fixwpps > $PKG/usr/bin/fixwpps cat fixscribeps > $PKG/usr/bin/fixscribeps cat fixwwps > $PKG/usr/bin/fixwwps cat fixdlsrps > $PKG/usr/bin/fixdlsrps cat extractres > $PKG/usr/bin/extractres cat includeres > $PKG/usr/bin/includeres cat psmerge > $PKG/usr/bin/psmerge cat getafm > $PKG/usr/bin/getafm cat showchar > $PKG/usr/bin/showchar chmod 755 $PKG/usr/bin/* mkdir -p $PKG/usr/man/man1 cp *.1 $PKG/usr/man/man1 mkdir -p $PKG/usr/share/psutils cp *.ps $PKG/usr/share/psutils mkdir -p $PKG/usr/doc/psutils-1.17 cp -a LICENSE README $PKG/usr/doc/psutils-1.17 chown -R root.root $PKG/usr/doc/psutils-1.17 chmod 644 $PKG/usr/doc/psutils-1.17/*