IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=3.1.3 PROGNAME="gawk $VERSION" DESC="\ gawk (pattern scanning and processing language) \n\ \n\ Gawk is the GNU Project's implementation of the AWK programming \n\ language. It conforms to the definition of the language in the POSIX \n\ 1003.2 Command Language And Utilities Standard. This version in turn \n\ is based on the description in The AWK Programming Language, by Aho, \n\ Kernighan, and Weinberger, with the additional features found in the \n\ System V Release 4 version of UNIX awk. Gawk also provides more \n\ recent Bell Labs awk extensions, and some GNU-specific extensions." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.gnu.org/gnu/gawk PKGNAME=gawk-$VERSION-s390-$BUILD TAG=ADD compile() { tar -yxvf $CWD/gawk-$VERSION.tar.bz2 cd gawk-$VERSION/ CFLAGS=-O2 \ ./configure --prefix=/usr \ --build=s390-slackware-linux \ --host=s390-slackware-linux \ --target=s390-slackware-linux make } install() { make install DESTDIR=/package-gawk mkdir -p /package-gawk/bin ( cd /package-gawk/usr/bin mv gawk-$VERSION /package-gawk/bin ln -sf ../../bin/awk awk rm -rf gawk ; ln -sf ../../bin/gawk gawk rm -rf pgawk ; ln -sf pgawk-$VERSION pgawk rm -rf gawk-$VERSION ; ln -sf ../../bin/gawk-$VERSION gawk-$VERSION ) ( cd /package-gawk/bin rm -rf awk ; ln -sf gawk awk rm -rf gawk ; ln -sf gawk-$VERSION gawk ) mkdir -p /package-gawk/usr/doc/gawk-$VERSION cp -a ABOUT-NLS AUTHORS COPYING FUTURES INSTALL LIMITATIONS \ NEWS POSIX.STD PROBLEMS README README_d \ /package-gawk/usr/doc/gawk-$VERSION ( cd /package-gawk/usr/info rm -f *.gz gzip -9 * ) ( cd /package-gawk/usr/man/man1 rm -rf pgawk.1 rm -f *.gz gzip -9 *.1 ln -sf gawk.1.gz awk.1.gz ln -sf gawk.1.gz pgawk.1.gz ) } attributes() { chown -R root.bin $PKG/package-gawk/bin \ $PKG/package-gawk/usr/bin } special() { cd $PKG mv package-gawk/* ./ rmdir package-gawk cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-gawk/%%' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }