summaryrefslogtreecommitdiffstats
path: root/office/texstudio
diff options
context:
space:
mode:
author Emmanuel N. Millán <emmanueln@gmail.com>2024-04-11 18:55:57 -0300
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2024-04-13 22:03:44 +0700
commit5743d7a371b1b5726ce48b4e52220a7b94fdcd0c (patch)
tree7dad69f714ded52ce274f43796ff142a61856c17 /office/texstudio
parent9f7617c2808da660e8ac7084aadbe695a448522c (diff)
downloadslackbuilds-5743d7a371b1b5726ce48b4e52220a7b94fdcd0c.tar.gz
slackbuilds-5743d7a371b1b5726ce48b4e52220a7b94fdcd0c.tar.xz
office/texstudio: Updated for version 4.7.3 + new maintainer.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office/texstudio')
-rw-r--r--office/texstudio/texstudio.SlackBuild28
-rw-r--r--office/texstudio/texstudio.info10
2 files changed, 21 insertions, 17 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
diff --git a/office/texstudio/texstudio.info b/office/texstudio/texstudio.info
index b29d40642b..3fbd240556 100644
--- a/office/texstudio/texstudio.info
+++ b/office/texstudio/texstudio.info
@@ -1,10 +1,10 @@
PRGNAM="texstudio"
-VERSION="4.0.2"
+VERSION="4.7.3"
HOMEPAGE="http://texstudio.sourceforge.net/"
-DOWNLOAD="https://github.com/texstudio-org/texstudio/archive/4.0.2/texstudio-4.0.2.tar.gz"
-MD5SUM="a9b7970ec883a5ec5b53f05c55237280"
+DOWNLOAD="https://github.com/texstudio-org/texstudio/archive/4.7.3/texstudio-4.7.3.tar.gz"
+MD5SUM="5e064bb219c2d9d07bc812aa0798ae73"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="Larry Hajali"
-EMAIL="larryhaja[at]gmail[dot]com"
+MAINTAINER="Emmanuel N. Millan"
+EMAIL="emmanueln@gmail.com"