diff options
Diffstat (limited to 'office/scribus/scribus.SlackBuild')
-rw-r--r-- | office/scribus/scribus.SlackBuild | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/office/scribus/scribus.SlackBuild b/office/scribus/scribus.SlackBuild index 78a889350e..73bfca1041 100644 --- a/office/scribus/scribus.SlackBuild +++ b/office/scribus/scribus.SlackBuild @@ -27,7 +27,7 @@ # Including input by Yalla-One and some code cleanup by rworkman PRGNAM=scribus -VERSION=1.3.3.13 +VERSION=1.3.5.1 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -39,10 +39,13 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" fi set -e @@ -51,7 +54,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar -xjvf $CWD/$PRGNAM-$VERSION.tar.bz2 +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 cd $PRGNAM-$VERSION chown -R root:root . chmod -R a-s,u+w,go+r-w . @@ -60,30 +63,27 @@ cmake \ -DCMAKE_C_FLAGS="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX:PATH=/usr \ + -DLIB_INSTALL_DIR:PATH=/usr/lib${LIBDIRSUFFIX} \ + -DLIB_SUFFIX=${LIBDIRSUFFIX} \ -DRENDER_LIB=CAIRO make make install DESTDIR=$PKG -# Install .desktop file and mime information -install -m 0644 -D vnd.scribus.desktop $PKG/usr/share/applications/scribus.desktop +mkdir -p $PKG/usr/share/{applications,pixmaps} +cat scribus.desktop > $PKG/usr/share/applications/scribus.desktop +( cd $PKG/usr/share/pixmaps ; ln -s ../scribus/icons/scribus.png . ) 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 ) -mkdir -p $PKG/usr/doc -mv $PKG/usr/share/doc/scribus $PKG/usr/doc/$PRGNAM-$VERSION -rm -rf $PKG/usr/share/doc - +mv $PKG/usr/share/doc $PKG/usr cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install @@ -91,4 +91,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -p -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -p -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |