From 6e8187f8a44ce49daa7cf2f3dc218d8c4ce5c7c2 Mon Sep 17 00:00:00 2001 From: Tee KOBAYASHI Date: Tue, 3 May 2022 08:56:58 +0900 Subject: [PATCH] new package: texstudio --- x11-packages/texstudio/build.sh | 32 +++++++++++++++++++ .../texstudio/texstudio-data.subpackage.sh | 3 ++ 2 files changed, 35 insertions(+) create mode 100644 x11-packages/texstudio/build.sh create mode 100644 x11-packages/texstudio/texstudio-data.subpackage.sh diff --git a/x11-packages/texstudio/build.sh b/x11-packages/texstudio/build.sh new file mode 100644 index 000000000..0e20f833d --- /dev/null +++ b/x11-packages/texstudio/build.sh @@ -0,0 +1,32 @@ +TERMUX_PKG_HOMEPAGE=https://www.texstudio.org/ +TERMUX_PKG_DESCRIPTION="A fully featured LaTeX editor" +TERMUX_PKG_LICENSE="GPL-3.0" +TERMUX_PKG_MAINTAINER="@termux" +TERMUX_PKG_VERSION=4.2.3 +TERMUX_PKG_SRCURL=https://github.com/texstudio-org/texstudio/archive/refs/tags/${TERMUX_PKG_VERSION}.tar.gz +TERMUX_PKG_SHA256=bb5d98a4bcf0023d628cd6b9741dd10209ddd147152c7b4950876f179c682b70 +TERMUX_PKG_DEPENDS="hunspell, libc++, libx11, poppler-qt, qt5-qtbase, qt5-qtdeclarative, qt5-qtsvg, qt5-qttools, quazip, texstudio-data, zlib" +TERMUX_PKG_BUILD_DEPENDS="qt5-qtbase-cross-tools, qt5-qtdeclarative-cross-tools, qt5-qttools-cross-tools" +TERMUX_PKG_RECOMMENDS="ghostscript" +TERMUX_PKG_SUGGESTS="texlive-installer" +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" +PKG_CONFIG=pkg-config +PREFIX=$TERMUX_PREFIX +USE_SYSTEM_HUNSPELL=1 +USE_SYSTEM_QUAZIP=1 +" + +termux_step_post_get_source() { + termux_download \ + "https://github.com/gentoo/gentoo/raw/e70f62a2157efbb0914a18c5a4f412c79df45995/app-office/texstudio/files/texstudio-3.0.5-quazip1.patch" \ + $TERMUX_PKG_CACHEDIR/texstudio-3.0.5-quazip1.patch \ + 96225276c9a78952508813a35d6f8d640cc9c799b88db040444e8a9d49c11392 + cat $TERMUX_PKG_CACHEDIR/texstudio-3.0.5-quazip1.patch | patch --silent -p1 +} + +termux_step_configure() { + "${TERMUX_PREFIX}/opt/qt/cross/bin/qmake" \ + -spec "${TERMUX_PREFIX}/lib/qt/mkspecs/termux-cross" \ + ${TERMUX_PKG_EXTRA_CONFIGURE_ARGS} +} diff --git a/x11-packages/texstudio/texstudio-data.subpackage.sh b/x11-packages/texstudio/texstudio-data.subpackage.sh new file mode 100644 index 000000000..eba98a89c --- /dev/null +++ b/x11-packages/texstudio/texstudio-data.subpackage.sh @@ -0,0 +1,3 @@ +TERMUX_SUBPKG_DESCRIPTION="Platform-independent data for texstudio" +TERMUX_SUBPKG_PLATFORM_INDEPENDENT=true +TERMUX_SUBPKG_INCLUDE="share/texstudio/"