IGNOREPATH=/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=2.6.1.1 PROGNAME="GNOME Libraries $VERSION" DESC="\ libgnome \n\ \n\ Libraries needed for GNOME." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.gnome.org/pub/gnome/sources/libgnome/ PKGNAME=libgnome-$VERSION-s390-$BUILD TAG=OPT compile() { tar -yxvf $CWD/libgnome-$VERSION.tar.bz2 cd libgnome-$VERSION/ zcat $CWD/libgnome.sound.diff.gz | patch -p1 --verbose chown -R root.root . find . -perm 666 -exec chmod 644 {} \; find . -perm 664 -exec chmod 644 {} \; CFLAGS=-O2 \ ./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var/lib \ --enable-static=no \ --build=s390-slackware-linux \ --host=s390-slackware-linux \ --target=s390-slackware-linux cat $CWD/makefile.diff | patch -p1 --backup --suffix=.orig make } install() { make install DESTDIR=/package-libgnome mkdir -p /package-libgnome/usr/doc/libgnome-$VERSION cp -a AUTHORS COPYING COPYING.LIB INSTALL NEWS README \ /package-libgnome/usr/doc/libgnome-$VERSION rm -rf /package-libgnome/etc/gconf/gconf.xml.defaults/%gconf.xml \ /package-libgnome/etc/gconf/gconf.xml.defaults/schemas/%gconf.xml } attributes() { chown -R root.bin $PKG/package-libgnome/usr/bin find $PKG/package-libgnome/etc/gconf/ -name %gconf.xml | xargs chmod 644 } special() { cd $PKG mv package-libgnome/* ./ rmdir package-libgnome/ cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-libgnome/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }