IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=4.5 PROGNAME="pcre $VERSION" DESC="\ pcre (Perl-compatible regular expression library) \n\ \n\ The PCRE library is a set of functions that implement regular \n\ expression pattern matching using the same syntax and semantics as \n\ Perl 5, with just a few differences (documented in the man page). \n\ \n\ The PCRE library is used by KDE's Konqueror browser." BUILD=1 MAINTAINER="Mark Post " SOURCE=http://sourceforge.net/projects/pcre/ PKGNAME=pcre-$VERSION-s390-$BUILD TAG=OPT compile() { tar -yxvf $CWD/pcre-$VERSION.tar.bz2 cd pcre-$VERSION/ chown -R root.root . find . -perm 777 -exec chmod 755 {} \; find . -perm 664 -exec chmod 644 {} \; CFLAGS=-O2 \ ./configure --prefix=/usr \ --enable-utf8 make } install() { make install DESTDIR=/package-pcre mkdir -p /package-pcre/usr/doc/pcre-$VERSION cp -a AUTHORS COPYING INSTALL LICENCE NEWS NON-UNIX-USE README \ /package-pcre/usr/doc/pcre-$VERSION ( cd doc cp -a Tech.Notes html \ /package-pcre/usr/doc/pcre-$VERSION ) ( cd /package-pcre/usr/man/ for dir in 1 3;do ( cd man$dir rm -f *.gz gzip -9 *.$dir ) done ) } special() { cd $PKG mv package-pcre/* ./ rmdir package-pcre chown -R root.bin usr/bin/ cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-pcre/%%' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }