IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=1.21alpha2 PROGNAME="p2c $VERSION" DESC="\ p2c (Pascal to C translator) \n\ \n\ P2c is a tool for translating Pascal programs into C. The input \n\ consists of a set of source files in any of the following Pascal \n\ dialects: HP Pascal, Turbo/UCSD Pascal, DEC VAX Pascal, Oregon \n\ Software Pascal/2, Macintosh Programmer's Workshop Pascal, \n\ Sun/Berkeley Pascal, Texas Instruments Pascal, Apollo Domain Pascal. \n\ Modula-2 syntax is also supported. Output is a set of .c and .h \n\ files that comprise an equivalent program in any of several dialects \n\ of C." BUILD=1 MAINTAINER="Mark Post " SOURCE=http://www.synaptics.com/people/daveg/ PKGNAME=p2c-$VERSION-s390-$BUILD TAG=OPT compile() { tar -xvzf $CWD/p2c-$VERSION.tar.gz cd p2c-1.21alpha-07.Dec.93/ zcat $CWD/p2c-1.21alpha2.diff.gz | patch -p1 -E --verbose --backup --suffix=.orig # time.h patch for glibc > 2.2.2 zcat $CWD/p2c-1.21alpha2.time.diff.gz | patch -p1 -E --verbose --backup --suffix=.orig cat $CWD/Makefile.diff | patch -p1 find . -name "*.orig" -exec rm --verbose {} \; cd src/ make make p2cc } install() { mkdir /package-p2c make install DESTDIR=/package-p2c cp -a p2cc.man /package-p2c/usr/man/man1/p2cc.1 cd .. mkdir -p /package-p2c/usr/doc/p2c-$VERSION cp -a README ftp.README examples /package-p2c/usr/doc/p2c-$VERSION rm -rf /package-p2c/usr/doc/p2c-$VERSION/examples/c (cd /package-p2c/usr/man/man1 rm -f *.gz gzip -9 *.1 ) } attributes() { chown -R root.bin $PKG/package-p2c/usr/bin/ } special() { cd $PKG mv package-p2c/* ./ rmdir package-p2c cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's/package-p2c\///' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }