From f6cf4ee704e722b119e9553c32e8eade216ae527 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sabri=20=C3=9Cnal?= Date: Sun, 15 Feb 2026 04:23:49 +0300 Subject: [PATCH 1/4] Use libyaml module from runtime GNOME runtime version 48 (based on the Freedesktop runtime version 24.08) appears to provide the libyaml module. In most cases, you don't need to build this module separately, unless your project requires a specific version or a custom configuration. Fixes: https://github.com/flathub/app.rednotebook.RedNotebook/issues/57 --- app.rednotebook.RedNotebook.yaml | 1 - libyaml.yaml | 7 ------- 2 files changed, 8 deletions(-) delete mode 100644 libyaml.yaml diff --git a/app.rednotebook.RedNotebook.yaml b/app.rednotebook.RedNotebook.yaml index bb1a3e3..f188aba 100644 --- a/app.rednotebook.RedNotebook.yaml +++ b/app.rednotebook.RedNotebook.yaml @@ -27,7 +27,6 @@ modules: - gtksourceview.yaml - enchant.yaml - python3-pyenchant.yaml - - libyaml.yaml - python3-PyYAML.yaml - RedNotebook.yaml cleanup: diff --git a/libyaml.yaml b/libyaml.yaml deleted file mode 100644 index aec973c..0000000 --- a/libyaml.yaml +++ /dev/null @@ -1,7 +0,0 @@ -name: libyaml -config-opts: - - --disable-static -sources: - - type: archive - url: https://github.com/yaml/libyaml/releases/download/0.2.5/yaml-0.2.5.tar.gz - sha256: c642ae9b75fee120b2d96c712538bd2cf283228d2337df2cf2988e3c02678ef4 From a09bc70b968b026f791f7221a686627efccaf052 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sabri=20=C3=9Cnal?= Date: Sun, 15 Feb 2026 04:33:11 +0300 Subject: [PATCH 2/4] Improve cleanup commands --- app.rednotebook.RedNotebook.yaml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/app.rednotebook.RedNotebook.yaml b/app.rednotebook.RedNotebook.yaml index f188aba..e1b783c 100644 --- a/app.rednotebook.RedNotebook.yaml +++ b/app.rednotebook.RedNotebook.yaml @@ -23,15 +23,18 @@ finish-args: - --share=network # OpenGL access - --device=dri -modules: - - gtksourceview.yaml - - enchant.yaml - - python3-pyenchant.yaml - - python3-PyYAML.yaml - - RedNotebook.yaml cleanup: - /include - /lib/pkgconfig + - /share/doc + - /share/gir-1.0 - /share/gtk-doc - /share/man + - /share/vala - '*.la' +modules: + - gtksourceview.yaml + - enchant.yaml + - python3-pyenchant.yaml + - python3-PyYAML.yaml + - RedNotebook.yaml From 3056ce7e647c1ede7752a3d48596fdc6af040755 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sabri=20=C3=9Cnal?= Date: Sun, 15 Feb 2026 04:39:03 +0300 Subject: [PATCH 3/4] Use upstream provided files Provided tar.gz file already contains them. --- RedNotebook.yaml | 6 ---- rednotebook.appdata.xml | 61 ----------------------------------------- rednotebook.desktop | 16 ----------- 3 files changed, 83 deletions(-) delete mode 100644 rednotebook.appdata.xml delete mode 100644 rednotebook.desktop diff --git a/RedNotebook.yaml b/RedNotebook.yaml index c631cd2..b741e12 100644 --- a/RedNotebook.yaml +++ b/RedNotebook.yaml @@ -4,12 +4,6 @@ sources: - type: archive url: https://github.com/jendrikseipp/rednotebook/archive/v2.42.tar.gz sha256: f0eddb338a74c5819000a6be16ef24b2821f9e60f86b3505f93f9a5bd2e3e9b2 - - type: file - path: rednotebook.appdata.xml - dest: data - - type: file - path: rednotebook.desktop - dest: data build-commands: - pip3 install --verbose --exists-action=i --no-deps --no-build-isolation --prefix="${FLATPAK_DEST}" --root="/" . post-install: diff --git a/rednotebook.appdata.xml b/rednotebook.appdata.xml deleted file mode 100644 index 7c2d421..0000000 --- a/rednotebook.appdata.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - app.rednotebook.RedNotebook - CC0-1.0 - - GPL-2.0+ - RedNotebook - - Jendrik Seipp - - jendrikseipp_AT_gmail.com - Graphical diary and journal - -

Modern desktop diary and personal journaling tool. It lets you format, - tag and search your entries. You can also add pictures, links and - customisable templates, spell check your notes, and export to plain - text, HTML, LaTeX or PDF.

-
- - - https://rednotebook.app - https://github.com/jendrikseipp/rednotebook/issues - https://github.com/jendrikseipp/rednotebook/discussions - https://rednotebook.app/help.html - https://rednotebook.app/downloads.html - https://hosted.weblate.org/engage/rednotebook - https://rednotebook.app/participate.html - https://github.com/jendrikseipp/rednotebook - - - - - RedNotebook - Edit mode - https://rednotebook.app/screenshots/rednotebook-2.0-1.png - - - RedNotebook - Preview mode - https://rednotebook.app/screenshots/rednotebook-2.0-2.png - - - - - - - - rednotebook - - - app.rednotebook.RedNotebook.desktop - - - - rednotebook - - - - - - -
diff --git a/rednotebook.desktop b/rednotebook.desktop deleted file mode 100644 index f9414cd..0000000 --- a/rednotebook.desktop +++ /dev/null @@ -1,16 +0,0 @@ -[Desktop Entry] -Version=1.0 -Name=RedNotebook -GenericName=Journal -GenericName[lt]=Žurnalas -Comment=Daily journal with calendar, templates and keyword searching -Comment[lt]=Kasdienis žurnalas su kalendoriumi, šablonais ir raktažodžių paieška -Exec=rednotebook -Icon=rednotebook -Terminal=false -Type=Application -Categories=Office;Calendar; -Keywords=Journal;Diary;Notes;Notebook; -Keywords[lt]=Žurnalas;Dienoraštis;Užrašai;Pastabos;Užrašinė; -StartupNotify=true -X-GNOME-Gettext-Domain=rednotebook From bd4b0e95e9670c5dbb5c113f30f4d632ffb10466 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sabri=20=C3=9Cnal?= Date: Sun, 15 Feb 2026 13:23:22 +0300 Subject: [PATCH 4/4] Fix appdata paper cuts --- RedNotebook.yaml | 2 ++ fix-appdata.patch | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 fix-appdata.patch diff --git a/RedNotebook.yaml b/RedNotebook.yaml index b741e12..094bc0e 100644 --- a/RedNotebook.yaml +++ b/RedNotebook.yaml @@ -4,6 +4,8 @@ sources: - type: archive url: https://github.com/jendrikseipp/rednotebook/archive/v2.42.tar.gz sha256: f0eddb338a74c5819000a6be16ef24b2821f9e60f86b3505f93f9a5bd2e3e9b2 + - type: patch + path: fix-appdata.patch build-commands: - pip3 install --verbose --exists-action=i --no-deps --no-build-isolation --prefix="${FLATPAK_DEST}" --root="/" . post-install: diff --git a/fix-appdata.patch b/fix-appdata.patch new file mode 100644 index 0000000..1bdfc24 --- /dev/null +++ b/fix-appdata.patch @@ -0,0 +1,32 @@ +From c6bb8b951c62c90ed27aa2bd6c62433c975c33c7 Mon Sep 17 00:00:00 2001 +From: Sabri Ünal +Date: Sun, 15 Feb 2026 13:21:25 +0300 +Subject: [PATCH] Fix appdata paper cuts + +--- + data/rednotebook.appdata.xml | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/data/rednotebook.appdata.xml b/data/rednotebook.appdata.xml +index 6edd95b..8972a1f 100644 +--- a/data/rednotebook.appdata.xml ++++ b/data/rednotebook.appdata.xml +@@ -1,12 +1,12 @@ + +- ++ + +- rednotebook ++ app.rednotebook + CC0-1.0 + + GPL-2.0+ + RedNotebook +- ++ + Jendrik Seipp + + jendrikseipp_AT_gmail.com +-- +libgit2 1.7.2 +