diff options
Diffstat (limited to 'office/scribus/scribus.SlackBuild')
-rw-r--r-- | office/scribus/scribus.SlackBuild | 41 |
1 files changed, 26 insertions, 15 deletions
diff --git a/office/scribus/scribus.SlackBuild b/office/scribus/scribus.SlackBuild index 25f5d1019f421..c1b17f985862c 100644 --- a/office/scribus/scribus.SlackBuild +++ b/office/scribus/scribus.SlackBuild @@ -2,7 +2,8 @@ # Slackware build script for scribus -# Copyright 2006 Martin Lefebvre <dadexter@gmail.com> +# Copyright 2006 Martin Lefebvre <dadexter@gmail.com> +# Copyright 2008 Heinz Wiesinger <pprkut@liwjatan.at> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,13 +26,12 @@ # Modified by the SlackBuilds.org project # Including input by Yalla-One and some code cleanup by rworkman -set -e - PRGNAM=scribus -VERSION=1.3.3.9 +VERSION=1.3.3.12 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -41,8 +41,12 @@ if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" fi +set -e + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP @@ -52,28 +56,35 @@ cd $PRGNAM-$VERSION chown -R root:root . chmod -R a-s,u+w,go+r-w . -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ -./configure \ - --prefix=/usr \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --enable-cairo +cmake \ + -DCMAKE_C_FLAGS="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX:PATH=/usr \ + -DRENDER_LIB=CAIRO make -make install-strip DESTDIR=$PKG +make install DESTDIR=$PKG # Install .desktop file and mime information -install -m 0644 -D scribus.desktop $PKG/usr/share/applications/kde/scribus.desktop -install -m 0644 -D scribus.xml $PKG/usr/share/mime/packages/scribus.xml +install -m 0644 -D vnd.scribus.desktop $PKG/usr/share/applications/scribus.desktop + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mv $PKG/usr/share/man $PKG/usr +mkdir -p $PKG/usr/man/de/man1 +mv $PKG/usr/man/man1/scribus.1.de $PKG/usr/man/de/man1/scribus.1 + ( cd $PKG/usr/man find . -type f -exec gzip -9 {} \; for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done ) -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/share/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +mkdir -p $PKG/usr/doc +mv $PKG/usr/share/doc/scribus $PKG/usr/doc/$PRGNAM-$VERSION +rm -rf $PKG/usr/share/doc + +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |