Si ecco lo slackbuild e alla fine lo slack-desc
#!/bin/sh
# Heavily based on the Slackware 10.2 SlackBuild
#
http://www.koffice.org
# Packagers Gohanz (
gohanz@infinito.it )
#
http://www.slacky.it
CWD=`pwd`
if ["$TMP" = ""]; then
TMP=/tmp
fi
PKG=$TMP/package-koffice
NAME=koffice
VERSION=1.4.2
TARGET=i686
ARCH=${ARCH:-i686}
BUILD=1AS
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mcpu=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mcpu=i686"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2"
elif [ "$ARCH" = "athlonxp" ]; then
SLKCFLAGS="-O3 -march=athlon-xp -mcpu=athlon-xp -pipe -fomit-frame-pointer -ffast-math -mmmx -m3dnow -msse -mfpmath=sse"
fi
# Set the config option variables if they are not already set:
if [ -r ../KDE.options ]; then
. ../KDE.options
fi
# The global options may be overridden here (if needed):
if [ -r ./local.options ]; then
. ./local.options
fi
rm -rf $PKG
mkdir -p $PKG/opt/kde
# Avoid a version number in .la files:
if [ -d /usr/lib/qt ]; then
QTDIR=/usr/lib/qt
fi
cd $TMP
echo "Building $NAME-$VERSION.tar.bz2..."
tar xjvf $CWD/$NAME-$VERSION.tar.bz2
cd $NAME-$VERSION
chown -R root.root .
find . -perm 664 -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/opt/kde \
--with-xinerama \
--disable-debug \
--program-prefix="" \
--program-suffix="" \
$TARGET-slackware-linux
make
make install DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$NAME-$VERSION
cp -a \
AUTHORS COPYING COPYING.LIB INSTALL README \
$PKG/usr/doc/$NAME-$VERSION
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)
if [ -d $PKG/opt/kde/man ]; then
gzip -9 $PKG/opt/kde/man/man?/*
fi
cd $PKG
makepkg -l y -c n $CWD/$NAME-$VERSION-$ARCH-$BUILD.tgz
if [ "$1" = "--cleanup" ]; then
rm -rf $TMP/$NAME-$VERSION
rm -rf $PKG
fi
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|' on
# the right side marks the last column you can put a character in. You must make
# exactly 11 lines for the formatting to be correct. It's also customary to
# leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
koffice: koffice (KDE office productivity suite)
koffice:
koffice: KOffice office productivity applications, including:
koffice: KWord.............(Professional text editing)
koffice: KSpread...........(Professional number cruncher/spreadsheet)
koffice: KPresenter........(Professional presentation program)
koffice: KChart............(Graphing of your abstract data)
koffice: Karbon............(Vector graphics tool)
koffice: Kugar.............(Database report creation)
koffice: Kivio.............(Flowcharting program)
koffice: KOffice Workspace.(A combination of all of the above)