summaryrefslogtreecommitdiffstats
path: root/office/texstudio
diff options
context:
space:
mode:
Diffstat (limited to 'office/texstudio')
-rw-r--r--office/texstudio/README5
-rw-r--r--office/texstudio/texstudio.SlackBuild46
-rw-r--r--office/texstudio/texstudio.info10
3 files changed, 35 insertions, 26 deletions
diff --git a/office/texstudio/README b/office/texstudio/README
index 401134bcc7..1aa94dc615 100644
--- a/office/texstudio/README
+++ b/office/texstudio/README
@@ -1,8 +1,3 @@
Texstudio is a free LaTeX editor that integrates many
tools needed to develop documents with LaTeX in just
one application.
-
-Note: Texstudio can be optionally compiled with
-poppler-qt5 by passing the argument QT5GUI=yes.
-
- QT5GUI=yes ./texstudio.SlackBuild
diff --git a/office/texstudio/texstudio.SlackBuild b/office/texstudio/texstudio.SlackBuild
index dce23faf56..e2896b61b8 100644
--- a/office/texstudio/texstudio.SlackBuild
+++ b/office/texstudio/texstudio.SlackBuild
@@ -1,10 +1,13 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for texstudio
-# Copyright 2013-2019 Larry Hajali <larryhaja[at]gmail[dot]com>
+# 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:
#
@@ -22,10 +25,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=texstudio
-VERSION=${VERSION:-2.12.16}
+VERSION=${VERSION:-4.7.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -35,7 +41,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -72,17 +85,18 @@ find -L . \
# Fix .desktop item.
sed -i -e '/^Encoding/d' -e "/^Icon/s|=.*|=$PRGNAM|" utilities/texstudio.desktop
-# Use Qt5 if QT5GUI is yes, otherwise, default to Qt4.
-if [ "${QT5GUI:-no}" == "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
@@ -108,4 +122,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/office/texstudio/texstudio.info b/office/texstudio/texstudio.info
index fd1e62cdf7..3fbd240556 100644
--- a/office/texstudio/texstudio.info
+++ b/office/texstudio/texstudio.info
@@ -1,10 +1,10 @@
PRGNAM="texstudio"
-VERSION="2.12.16"
+VERSION="4.7.3"
HOMEPAGE="http://texstudio.sourceforge.net/"
-DOWNLOAD="https://github.com/texstudio-org/texstudio/archive/2.12.16/texstudio-2.12.16.tar.gz"
-MD5SUM="d72065905beb27e515ed94736b205c2b"
+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"