IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=2.2.3 PROGNAME="glib2 $VERSION" DESC="\ glib2 (library of C routines) \n\ \n\ GLib is a library which includes support routines for C such as lists, \n\ trees, hashes, memory allocation, and many other things." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.gnu.org/pub/gnu/glib PKGNAME=glib2-$VERSION-s390-$BUILD TAG=REC compile() { tar -yxvf $CWD/glib-$VERSION.tar.bz2 cd glib-$VERSION/ chown -R root.root . find . -perm 664 -exec chmod 644 {} \; CFLAGS=-O2 \ ./configure --prefix=/usr \ --sysconfdir=/etc \ --build=s390-slackware-linux \ --target=s390-slackware-linux \ --host=s390-slackware-linux make } install() { make install DESTDIR=/package-glib2 mkdir -p /package-glib2/usr/doc/glib-$VERSION cp -a AUTHORS COPYING ChangeLog NEWS README /package-glib2/usr/doc/glib-$VERSION ( cd /package-glib2/usr/man/man1 rm -f *.gz gzip -9 *.1 ) } attributes() { chown -R root.bin $PKG/package-glib2/usr/bin/ } special() { cd $PKG mv package-glib2/* ./ rmdir package-glib2 cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-glib2/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }