diff options
Diffstat (limited to 'office/texstudio/texstudio.SlackBuild')
-rw-r--r-- | office/texstudio/texstudio.SlackBuild | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/office/texstudio/texstudio.SlackBuild b/office/texstudio/texstudio.SlackBuild index 6f66cddb63..e2896b61b8 100644 --- a/office/texstudio/texstudio.SlackBuild +++ b/office/texstudio/texstudio.SlackBuild @@ -4,7 +4,10 @@ # Copyright 2013-2020 Larry Hajali <larryhaja[at]gmail[dot]com> # All rights reserved. -# +# +# Copyright 2024 Emmanuel N. Millan, Mendoza, Argentina. +# All rights reserved. +# # Redistribution and use of this script, with or without modification, is # permitted provided that the following conditions are met: # @@ -25,7 +28,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=texstudio -VERSION=${VERSION:-4.0.2} +VERSION=${VERSION:-4.7.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -82,17 +85,18 @@ find -L . \ # Fix .desktop item. sed -i -e '/^Encoding/d' -e "/^Icon/s|=.*|=$PRGNAM|" utilities/texstudio.desktop -# Use Qt4 if QT5GUI is no, otherwise, default to Qt5. -if [ "${QT5GUI:-yes}" == "yes" ]; then - qmake-qt5 LIBS+="-L/usr/lib${LIBDIRSUFFIX}" QMAKE_CFLAGS+="$SLKCFLAGS" \ - QMAKE_CXXFLAGS+="$SLKCFLAGS" CONFIG-=debug -o Makefile $PRGNAM.pro -else - qmake LIBS+="-L/usr/lib${LIBDIRSUFFIX}" QMAKE_CFLAGS+="$SLKCFLAGS" \ - PHONON=true INCLUDEPATH+="/usr/include/KDE" QMAKE_CXXFLAGS+="$SLKCFLAGS" \ - CONFIG-=debug -o Makefile $PRGNAM.pro -fi +mkdir -p build +cd build +cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} \ + -DCMAKE_INSTALL_MANDIR=/usr/man \ + -DCMAKE_BUILD_TYPE=Release .. make -make install INSTALL_ROOT=$PKG +make install/strip DESTDIR=$PKG +cd .. find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |