From 41ddeee08135fd5c2fd1776eb594a073a59a9ac0 Mon Sep 17 00:00:00 2001 From: fsLeg Date: Sat, 4 Oct 2025 17:31:38 +0300 Subject: [PATCH] qownnotes: added external Botan support --- qownnotes/README | 10 +++++++--- qownnotes/qownnotes.SlackBuild | 7 ++++++- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/qownnotes/README b/qownnotes/README index 96af213..e8f8108 100644 --- a/qownnotes/README +++ b/qownnotes/README @@ -11,7 +11,11 @@ Nextcloud. sync client. - Use Nextcloud Notes to edit your notes in the web. -To build using Qt6 instead of Qt5, use QT6=yes. This requires qt6. +To build using Qt6, use QT6=yes, otherwise Qt5 will be used. This +requires qt6. -To enable git versioning of your notes, use GIT=yes. This requires -libgit2. +To enable internal git versioning of your notes, use LIBGIT2=yes, +otherwise `git` command will be used. This requires libgit2. + +To use system Botan, use BOTAN=yes, otherwise a bundled stub will be +used. This requires Botan3. diff --git a/qownnotes/qownnotes.SlackBuild b/qownnotes/qownnotes.SlackBuild index f24c54f..3c72742 100644 --- a/qownnotes/qownnotes.SlackBuild +++ b/qownnotes/qownnotes.SlackBuild @@ -82,10 +82,14 @@ if [ "${QT6:-no}" != "no" ]; then USE_QT6="-DQON_QT6_BUILD=ON" fi -if [ "${GIT:-no}" != "no" ]; then +if [ "${LIBGIT2:-no}" != "no" ]; then USE_LIBGIT2="-DBUILD_WITH_LIBGIT2=ON" fi +if [ "${BOTAN:-no}" != "no" ]; then + USE_SYSTEM_BOTAN="-DBUILD_WITH_SYSTEM_BOTAN=ON" +fi + mkdir build CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -95,6 +99,7 @@ cmake \ -DBUILD_WITH_ASPELL=ON \ $USE_QT6 \ $USE_LIBGIT2 \ + $USE_SYSTEM_BOTAN \ -DCMAKE_BUILD_TYPE=Release \ -B build cmake --build build -- 2.46.4