diff options
Diffstat (limited to 'office/scribus/scribus.SlackBuild')
-rw-r--r-- | office/scribus/scribus.SlackBuild | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/office/scribus/scribus.SlackBuild b/office/scribus/scribus.SlackBuild index 98205c6f21..d68fdc8d4c 100644 --- a/office/scribus/scribus.SlackBuild +++ b/office/scribus/scribus.SlackBuild @@ -4,6 +4,7 @@ # Copyright 2006 Martin Lefebvre <dadexter@gmail.com> # Copyright 2008-2021 Heinz Wiesinger, Amsterdam, The Netherlands +# Copyright 2025 Olivier Brouckaert <olivier.b@i-services.be>, Brussels, Belgium # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -29,7 +30,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=scribus -VERSION=${VERSION:-1.5.7} +VERSION=${VERSION:-1.6.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -83,25 +84,30 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# thanks archlinux! -patch -p1 < $CWD/harfbuzz-3.0.0.patch +if [ -e /usr/include/podofo/podofo.h ]; then + PODOFO=on +else + PODOFO=off +fi -# podofo is forcibly disabled as the new one on SBo is incompatible with 1.5.7 +mkdir build +cd build cmake \ -DCMAKE_C_FLAGS="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX:PATH=/usr \ - -DWITH_PODOFO=off \ - -DLIB_SUFFIX=${LIBDIRSUFFIX} - + -DWITH_PODOFO=$PODOFO \ + -DLIB_SUFFIX=$LIBDIRSUFFIX \ + .. make make install DESTDIR=$PKG +cd .. 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 . + ln -s ../scribus/icons/1_5_0/scribus.png . cd - find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ |