commit: f313614283a3dc6b6ed905d0f08106cdf352e866
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Mon May 5 11:56:42 2025 +0000
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Mon May 5 15:14:45 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3136142
app-office/joplin-desktop: bump to 3.3.12
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
app-office/joplin-desktop/Manifest | 1 +
.../joplin-desktop/joplin-desktop-3.3.12.ebuild | 105 +++++++++++++++++++++
2 files changed, 106 insertions(+)
diff --git a/app-office/joplin-desktop/Manifest
b/app-office/joplin-desktop/Manifest
index 04926d659336..e1f372cc0d13 100644
--- a/app-office/joplin-desktop/Manifest
+++ b/app-office/joplin-desktop/Manifest
@@ -1,2 +1,3 @@
DIST Joplin-3.3.10.AppImage 229320283 BLAKE2B
dd9dcb79d994917d8835a07c1c0d758710dc0a484be999e3d5b777082488f84b7c39868066c7790152d66895d416592b844dc7b19575548f3089ea58ce18c406
SHA512
b472f973ca4dc803f0308db31add52583c42da4fd67425541257071f6e3d8bda5799f30507b819679253115675bc4840850a7f984a82f00be8656ccfe1a26c2d
+DIST Joplin-3.3.12.AppImage 229316776 BLAKE2B
e8ba2ee9bb8d81fbe6b748d9bdf785fc82d2d32187e48ae3964a944c7c5c4660f5a0c47cfcb7248a467778c8a21e3508c23b8a039c8eb3a797d4311489fc2cbb
SHA512
31f42412d788581b23c5e9fe03d0d0c16728dff3e1903c32a72ca9295a5451b3ef49c7bb654f58f8caf17db40cb27e0fcb5a58fad6a0e152b315c5011c7cd344
DIST Joplin-3.3.3.AppImage 229190060 BLAKE2B
6eae7bf970dc20cf87dbea8db45c9f9a1b554035177e3a9ddf482b42a44f5f1ad10d904b2f2565db94f78f7eefca106f644103cde2b3605e9ff0439f9ab71b53
SHA512
4aec5a90d5a90555280cfb2eb0c979416bb106bc661108d691e44535db6bb4b988442af1351f78abb1a0e4df3cc0db47c53244129a41b0fb6f1cae8d857e150f
diff --git a/app-office/joplin-desktop/joplin-desktop-3.3.12.ebuild
b/app-office/joplin-desktop/joplin-desktop-3.3.12.ebuild
new file mode 100644
index 000000000000..e512dc366a9a
--- /dev/null
+++ b/app-office/joplin-desktop/joplin-desktop-3.3.12.ebuild
@@ -0,0 +1,105 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# NOTICE: This is a Electron app (oh my) and the upstream only provides
AppImages.
+
+EAPI=8
+
+APPIMAGE="Joplin-${PV}.AppImage"
+
+inherit desktop xdg
+
+DESCRIPTION="Secure note taking and to-do app with synchronization
capabilities"
+HOMEPAGE="https://joplinapp.org/
+ https://github.com/laurent22/joplin/"
+SRC_URI="https://github.com/laurent22/joplin/releases/download/v${PV}/${APPIMAGE}"
+
+LICENSE="AGPL-3+"
+SLOT="0"
+KEYWORDS="-* ~amd64"
+RESTRICT="bindist"
+
+RDEPEND="
+ >=app-accessibility/at-spi2-core-2.46.0:2
+ app-crypt/libsecret[crypt]
+ app-misc/ca-certificates
+ dev-libs/expat
+ dev-libs/glib:2
+ dev-libs/nspr
+ dev-libs/nss
+ media-libs/alsa-lib
+ || (
+ media-libs/libcanberra-gtk3
+ media-libs/libcanberra[gtk3(-)]
+ )
+ media-libs/libglvnd
+ media-libs/mesa
+ net-misc/curl
+ net-print/cups
+ sys-apps/dbus
+ sys-libs/zlib
+ sys-process/lsof
+ x11-libs/cairo
+ x11-libs/gtk+:3
+ x11-libs/libdrm
+ x11-libs/libnotify
+ x11-libs/libX11
+ x11-libs/libxcb
+ x11-libs/libXcomposite
+ x11-libs/libXdamage
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libxkbcommon
+ x11-libs/libxkbfile
+ x11-libs/libXrandr
+ x11-libs/libXScrnSaver
+ x11-libs/pango
+ x11-misc/xdg-utils
+"
+
+QA_PREBUILT="*"
+
+src_unpack() {
+ mkdir -p "${S}" || die
+ cp "${DISTDIR}/${APPIMAGE}" "${S}" || die
+
+ cd "${S}" || die # "appimage-extract" unpacks to current
directory.
+ chmod +x "${S}/${APPIMAGE}" || die
+ "${S}/${APPIMAGE}" --appimage-extract || die
+}
+
+src_prepare() {
+ # Fix permissions.
+ find "${S}" -type d -exec chmod a+rx {} + || die
+ find "${S}" -type f -exec chmod a+r {} + || die
+
+ default
+}
+
+src_install() {
+ cd "${S}/squashfs-root" || die
+
+ insinto /usr/share
+ doins -r ./usr/share/icons
+
+ local apphome="/opt/${PN}"
+ local -a toremove=(
+ .DirIcon
+ AppRun
+ LICENSE.electron.txt
+ LICENSES.chromium.html
+ joplin.png
+ resources/app.asar.unpacked/node_modules/7zip-bin-linux/arm
+ resources/app.asar.unpacked/node_modules/7zip-bin-linux/arm64
+ resources/app.asar.unpacked/node_modules/node-notifier
+ usr
+ )
+ rm -f -r "${toremove[@]}" || die
+
+ mkdir -p "${ED}/${apphome}" || die
+ cp -r . "${ED}/${apphome}" || die
+
+ dosym -r "${apphome}/joplin" "/usr/bin/${PN}"
+ make_desktop_entry "${PN}" Joplin joplin "Office;" \
+ "StartupWMClass=Joplin\nMimeType=x-scheme-handler/joplin;"
+}