IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=0.2.8.2 PROGNAME="libwmf $VERSION" DESC="\ libwmf (WMF graphics format library) \n\ \n\ libwmf is a library for interpreting metafile images and either \n\ displaying them using X or converting them to standard formats such \n\ as PNG, JPEG, PS, EPS and SVG." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.gnu.org/pub/gnu/libwmf PKGNAME=libwmf-$VERSION-s390-$BUILD TAG=OPT compile() { tar -yxvf $CWD/libwmf-$VERSION.tar.bz2 cd libwmf-$VERSION/ chown -R root.root . find . -perm 777 -exec chmod 755 {} \; find . -perm 664 -exec chmod 644 {} \; CFLAGS=-O2 \ ./configure --prefix=/usr \ --enable-static=no \ --build=s390-slackware-linux \ --host=s390-slackware-linux \ --target=s390-slackware-linux make } install() { make install DESTDIR=/package-libwmf mkdir -p /package-libwmf/usr/doc/libwmf-$VERSION cp -a AUTHORS BUILDING COPYING CREDITS NEWS README TODO \ /package-libwmf/usr/doc/libwmf-$VERSION } attributes() { chown -R root.bin $PKG/package-libwmf/usr/bin/ } special() { cd $PKG mv package-libwmf/* ./ rmdir package-libwmf rm -rf usr/share/doc cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-libwmf/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new } subpacks() { repack libwmf-docs }