mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
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>
This commit is contained in:
parent
9f7617c280
commit
5743d7a371
2 changed files with 21 additions and 17 deletions
|
@ -5,6 +5,9 @@
|
|||
# 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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue