summaryrefslogtreecommitdiff
path: root/office/scribus/scribus.SlackBuild
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@liwjatan.at>2010-05-11 22:26:13 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-11 22:26:13 +0200
commitabef7dd54f5771c6c38d63b2de9c94a3768b85f7 (patch)
treeb5e4085d335b31220ec4df802d76a5c626f4c870 /office/scribus/scribus.SlackBuild
parentc97c8432a939fc20f5e0e1e6a23a2657307c2c62 (diff)
downloadslackbuilds-abef7dd54f5771c6c38d63b2de9c94a3768b85f7.tar.gz
office/scribus: Updated for version 1.3.3.12
Diffstat (limited to 'office/scribus/scribus.SlackBuild')
-rw-r--r--office/scribus/scribus.SlackBuild41
1 files changed, 26 insertions, 15 deletions
diff --git a/office/scribus/scribus.SlackBuild b/office/scribus/scribus.SlackBuild
index 25f5d1019f..c1b17f9858 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