From 7b759ce27369d6ba6891b462adb4ccddf40f22e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Mon, 19 Jul 2021 20:13:00 -0300 Subject: [PATCH] xournalpp: update to 1.1.0. --- srcpkgs/xournalpp/patches/plugin-path.patch | 20 ++++++++++++++++++++ srcpkgs/xournalpp/template | 10 +++++++--- 2 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 srcpkgs/xournalpp/patches/plugin-path.patch diff --git a/srcpkgs/xournalpp/patches/plugin-path.patch b/srcpkgs/xournalpp/patches/plugin-path.patch new file mode 100644 index 00000000000000..36bfbb36ae9112 --- /dev/null +++ b/srcpkgs/xournalpp/patches/plugin-path.patch @@ -0,0 +1,20 @@ +Temporary patch to load plugins from $CONFIG_FOLDER/plugins/, +usually $HOME/.config/xournalpp/plugins/ + +Otherwise, the only way to load plugins is to place them in the +system directory /usr/share/xournalpp/plugins. + +A more general approach for plugin paths is planned, see +https://github.com/xournalpp/xournalpp/issues/1155#issuecomment-623234420 + +--- a/src/plugin/PluginController.cpp 2021-03-14 00:26:17.633925344 -0300 ++++ b/src/plugin/PluginController.cpp 2021-03-14 00:27:08.487299784 -0300 +@@ -15,6 +15,7 @@ + PluginController::PluginController(Control* control): control(control) { + #ifdef ENABLE_PLUGINS + auto searchPath = control->getGladeSearchPath()->getFirstSearchPath(); ++ loadPluginsFrom(Util::getConfigSubfolder("plugins")); + loadPluginsFrom((searchPath /= "../plugins").lexically_normal()); + #endif + } + diff --git a/srcpkgs/xournalpp/template b/srcpkgs/xournalpp/template index 1f75e7e93eda13..cde4c85a1d22b3 100644 --- a/srcpkgs/xournalpp/template +++ b/srcpkgs/xournalpp/template @@ -1,11 +1,11 @@ # Template file for 'xournalpp' pkgname=xournalpp -version=1.0.20 +version=1.1.0 revision=1 build_style=cmake hostmakedepends="pkg-config gettext" makedepends="libxml2-devel libcppunit-devel poppler-glib-devel gtk+3-devel - portaudio-cpp-devel libsndfile-devel libzip-devel" + portaudio-cpp-devel libsndfile-devel libzip-devel librsvg-devel lua53-devel" depends="virtual?tex" short_desc="Handwriting Notetaking software with PDF annotation support" maintainer="mobinmob " @@ -13,7 +13,11 @@ license="GPL-2.0-or-later" homepage="https://github.com/xournalpp/xournalpp" changelog="https://raw.githubusercontent.com/xournalpp/xournalpp/master/CHANGELOG.md" distfiles="https://github.com/${pkgname}/${pkgname}/archive/${version}.tar.gz" -checksum=1abf9925f11f0944c8142194be3e72541e230afa83490b074f5c6e613b0e2a02 +checksum=31b99282bcd1d829f05f1c9ccd07c5d599acc0e69725d135cdc97e1dcaf2baee + +if [ -z "$CROSS_BUILD" ]; then + hostmakedepends+=" help2man" +fi case "$XBPS_TARGET_MACHINE" in *-musl) makedepends+=" libexecinfo-devel"