Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions office/texstudio/texstudio.SlackBuild
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Copyright 2013-2020 Larry Hajali <larryhaja[at]gmail[dot]com>
# All rights reserved.
#
# Copyright 2024 Emmanuel N. Millan, Mendoza, Argentina.
# Copyright 2021-2026 Emmanuel N. Millan, Mendoza, Argentina.
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
Expand All @@ -28,7 +28,7 @@
cd $(dirname $0) ; CWD=$(pwd)

PRGNAM=texstudio
VERSION=${VERSION:-4.8.4}
VERSION=${VERSION:-4.9.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
Expand Down Expand Up @@ -76,6 +76,8 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
rm _codeql_detected_source_root

find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
Expand All @@ -85,14 +87,19 @@ find -L . \
# Fix .desktop item.
sed -i -e '/^Encoding/d' -e "/^Icon/s|=.*|=$PRGNAM|" utilities/texstudio.desktop

# Disable QT6
sed -i 's/find_package(QT NAMES Qt6 Qt5 COMPONENTS Widgets LinguistTools REQUIRED)/find_package(QT NAMES Qt5 COMPONENTS Widgets LinguistTools REQUIRED)/' CMakeLists.txt

mkdir -p build
cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DQT_VERSION_MAJOR=5 \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} \
-DCMAKE_INSTALL_MANDIR=/usr/man \
-DCMAKE_INSTALL_DOCDIR=/usr/doc/$PRGNAM-$VERSION \
-DCMAKE_BUILD_TYPE=Release ..
make
make install/strip DESTDIR=$PKG
Expand All @@ -115,7 +122,10 @@ install -D -m 0644 utilities/$PRGNAM.svg \
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a utilities/{AUTHORS,license.txt,COPYING} $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
rm -f $PKG/usr/share/$PRGNAM/{COPYING,CHANGELOG.txt,AUTHORS}
mv $PKG/usr/share/doc/$PRGNAM/* $PKG/usr/doc/$PRGNAM-$VERSION/
rmdir $PKG/usr/share/doc/$PRGNAM
rmdir $PKG/usr/share/doc
rmdir $PKG/usr/doc/${PRGNAM}-${VERSION}/_images/social_previews

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
Expand Down
8 changes: 4 additions & 4 deletions office/texstudio/texstudio.info
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
PRGNAM="texstudio"
VERSION="4.8.4"
HOMEPAGE="http://texstudio.sourceforge.net/"
DOWNLOAD="https://github.com/texstudio-org/texstudio/archive/4.8.4/texstudio-4.8.4.tar.gz"
MD5SUM="35b58a7f94cb46bca0f17fa1d1ff3af5"
VERSION="4.9.1"
HOMEPAGE="https://texstudio.org"
DOWNLOAD="https://github.com/texstudio-org/texstudio/archive/4.9.1/texstudio-4.9.1.tar.gz"
MD5SUM="88697234a10c9c020a051d396a014cfd"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
Expand Down