IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=4.3.3 PROGNAME="gcalctool $VERSION" DESC="\ gcalctool (calculator application) \n\ \n\ This is gcalctool, the calculator application that was previously in \n\ the OpenWindows Deskset of the Solaris 8 operating system. Sun \n\ Microsystems Inc. have kindly given permission to release it. \n\ \n\ gcalctool was written by Rich Burridge." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.gnu.org/pub/gnu/gcalctool PKGNAME=gcalctool-$VERSION-s390-$BUILD TAG=OPT compile() { tar -yxvf $CWD/gcalctool-$VERSION.tar.bz2 cd gcalctool-$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 \ --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-gcalctool mkdir -p /package-gcalctool/usr/doc/gcalctool-$VERSION cp AUTHORS COPYING INSTALL MAINTAINERS NEWS README TODO \ /package-gcalctool/usr/doc/gcalctool-$VERSION mkdir -p /package-gcalctool/var/lib/scrollkeeper/ rm -rf /package-gcalctool/etc/gconf/gconf.xml.defaults/%gconf.xml \ /package-gcalctool/etc/gconf/gconf.xml.defaults/apps/%gconf.xml \ /package-gcalctool/etc/gconf/gconf.xml.defaults/schemas/%gconf.xml \ /package-gcalctool/etc/gconf/gconf.xml.defaults/schemas/apps/%gconf.xml } attributes() { chown -R root.bin $PKG/package-gcalctool/usr/bin find $PKG/package-gcalctool/ -name %gconf.xml | xargs chmod 644 } special() { cd $PKG mv package-gcalctool/* ./ rmdir package-gcalctool cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-gcalctool/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new cat << EOF >> doinst.sh if [ -x /usr/bin/scrollkeeper-update ]; then /usr/bin/scrollkeeper-update -p /var/lib/scrollkeeper 1> /dev/null 2> /dev/null fi EOF }