IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=2.0.5 PROGNAME="libgtop $VERSION" DESC="\ libgtop \n\ \n\ A library that fetches information about the running system such as \n\ cpu usage, memory usage, and active processes. On Linux systems, \n\ this information is taken directly from the /proc filesystem." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.gnome.org/pub/GNOME/stable/sources/ PKGNAME=libgtop-$VERSION-s390-$BUILD TAG=OPT compile() { tar -yxvf $CWD/libgtop-$VERSION.tar.bz2 cd libgtop-$VERSION/ 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 \ --program-prefix="" \ --program-suffix="" \ --build=s390-slackware-linux \ --host=s390-slackware-linux \ --target=s390-slackware-linux make } install() { # Ugly libtool hack again... Sigh. cp -a sysdeps/common/.libs/libgtop_common* \ sysdeps/linux/.libs/libgtop_sysdeps* \ /usr/local/lib && ldconfig make install DESTDIR=/package-libgtop # Remove the hack rm /usr/local/lib/libgtop_common* /usr/local/lib/libgtop_sysdeps* && ldconfig mkdir -p /package-libgtop/usr/doc/libgtop-$VERSION cp -a AUTHORS COPYING LIBGTOP-VERSION NEWS README RELNOT* \ /package-libgtop/usr/doc/libgtop-$VERSION ( cd /package-libgtop/usr/info rm -f *.gz gzip -9 * ) } attributes() { chown -R root.bin $PKG//package-libgtop/usr/bin/ } special() { cd $PKG mv package-libgtop/* ./ rmdir package-libgtop/ cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-libgtop/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }