IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=1.0.5 PROGNAME="libmng $VERSION" DESC="\ libmng (Multiple-image Network Graphics library) \n\ \n\ This is libmng, the MNG reference library. MNG (pronounced 'ming'), \n\ is short for Multiple-image Network Graphics. Designed with the same \n\ modular philosophy as PNG and by many of the same people, MNG is \n\ intended to provide a home for all of the multi-image (animation) \n\ capabilities that have no place in PNG. \n\ \n\ libmng was written by Gerard Juyn." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.gnu.org/pub/gnu/libmng PKGNAME=libmng-$VERSION-s390x-$BUILD TAG=OPT compile() { tar -zxvf $CWD/libmng-$VERSION.tar.gz cd libmng-$VERSION/ chown -R root.root . CFLAGS=-O2 \ ./configure --prefix=/usr \ --libdir='${exec_prefix}/lib64' make -j3 } install() { make install DESTDIR=/package-libmng mkdir -p /package-libmng/usr/doc/libmng-$VERSION cp -a Changes LICENSE README* doc/libmng.txt doc/Plan1.png doc/Plan2.png \ /package-libmng/usr/doc/libmng-$VERSION mkdir -p /package-libmng/usr/man/man3 \ /package-libmng/usr/man/man5 ( cd doc/man cat libmng.3 | gzip -9c > /package-libmng/usr/man/man3/libmng.3.gz cat jng.5 | gzip -9c > /package-libmng/usr/man/man5/jng.5.gz cat mng.5 | gzip -9c > /package-libmng/usr/man/man5/mng.5.gz ) } special() { cd $PKG mv package-libmng/* ./ rmdir package-libmng cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-libmng/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }