IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=1.3.1 PROGNAME="koffice $VERSION" DESC="\ koffice (KDE office productivity suite) \n\ \n\ KOffice office productivity applications, including: \n\ - KWord (Professional text editing) \n\ - KSpread (Professional number cruncher/spreadsheet) \n\ - KPresenter (Professional presentation program) \n\ - KChart (Graphing of your abstract data) \n\ - Kontour (Vector graphics tool) \n\ - Kugar (Database report creation) \n\ - Kivio (Flowcharting program) \n\ - KOffice Workspace (A combination of all of the above)" BUILD=1 MAINTAINER="Mark Post " SOURCE=http://www.koffice.org/download/source.php PKGNAME=koffice-$VERSION-s390-$BUILD TAG=OPT compile() { # Avoid a version number in .la files: if [ -d /usr/lib/qt ]; then QTDIR=/usr/lib/qt fi tar -yxvf $CWD/koffice-$VERSION.tar.bz2 cd koffice-$VERSION/ ( cd kword # zcat $CWD/1.2.1_kword_crashes.diff.gz | patch -p0 --verbose --backup --suffix=.orig ) # cat $CWD/strstream.diff | patch -p1 --verbose --backup --suffix=.orig # cat $CWD/rtfimport.cpp.diff | patch -p1 --verbose --backup --suffix=.orig chown -R root.root . find . -perm 664 -exec chmod 644 {} \; CFLAGS=-O2 CXXFLAGS=-O2 \ ./configure --prefix=/opt/kde \ --with-xinerama \ --disable-debug \ --program-prefix="" --program-suffix="" \ --build=s390-slackware-linux \ --host=s390-slackware-linux \ --target=s390-slackware-linux make } install() { make install DESTDIR=/package-koffice mkdir -p /package-koffice/usr/doc/koffice-$VERSION cp -a AUTHORS COPYING COPYING.LIB INSTALL README \ /package-koffice/usr/doc/koffice-$VERSION } special() { cd $PKG mv package-koffice/* ./ rmdir package-koffice cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-koffice/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }