diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-01-06 00:53:39 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-01-06 00:53:39 +0000 |
commit | 5f153476311b368e80c57c4d1051c8106a724118 (patch) | |
tree | 830e9a7198df466eb4568e5a790d99b4cd1a6143 /app-office/joplin-desktop | |
parent | 17ad5d72e60411f0ed843a9dbeb450d89f63d62c (diff) |
gentoo auto-resync : 06:01:2024 - 00:53:38
Diffstat (limited to 'app-office/joplin-desktop')
-rw-r--r-- | app-office/joplin-desktop/Manifest | 3 | ||||
-rw-r--r-- | app-office/joplin-desktop/joplin-desktop-2.13.12.ebuild | 103 | ||||
-rw-r--r-- | app-office/joplin-desktop/metadata.xml | 19 |
3 files changed, 125 insertions, 0 deletions
diff --git a/app-office/joplin-desktop/Manifest b/app-office/joplin-desktop/Manifest new file mode 100644 index 000000000000..86f6b904e7c9 --- /dev/null +++ b/app-office/joplin-desktop/Manifest @@ -0,0 +1,3 @@ +DIST Joplin-2.13.12.AppImage 210948143 BLAKE2B ea2e1f73009b6255cb780e9c19878090ec90c0203a1cf33dc6e0f23feb8e1fe18ce8acaeb48904f6f71a0ec1aa8d6beaeb79be2db5196477ee8c7379fabc8d0d SHA512 6a68967045b31b010d03ac17a855404f77fbe0d403dce2f5740673c135b99536b940880fe2f103199295476ed1ec5e83465b8b0a26ef409cef362c8ef23e2219 +EBUILD joplin-desktop-2.13.12.ebuild 2371 BLAKE2B 75f8638b02d789e48e0ab968aa862886478dfb8da8025ce1bb5ed014e6b0076c2dd1228c048ed0ee784310549a688096060446c7063e61a3057ef5d1a1ea7833 SHA512 f745f089a455cc3cf92a2ab4a1c443727002666ec951d0d47341899e852ec3c90334a1645a21d866ec105f9a953f2a8bab99c8f4b591ce577a6ecb55d11d782a +MISC metadata.xml 755 BLAKE2B 2f95bccd9fb7bf21b253a524950c4775273c2d1911ebf4b90a392f8c2c7f38e986af0fbd217287595ba39a684609d8df6f275e146388aa0331169e51ba6fc823 SHA512 b62f1dfc822413386115305900866f6cf16fc2071425d2f0f515f537a29bf282d65c31b7f59ccf9187280456eb759a5fcce7340fb983ff0f50413c649c8fc1d0 diff --git a/app-office/joplin-desktop/joplin-desktop-2.13.12.ebuild b/app-office/joplin-desktop/joplin-desktop-2.13.12.ebuild new file mode 100644 index 000000000000..a9c365263d83 --- /dev/null +++ b/app-office/joplin-desktop/joplin-desktop-2.13.12.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2024 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/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 toremove=( + .DirIcon + @joplinapp-desktop.desktop + @joplinapp-desktop.png + AppRun + LICENSE.electron.txt + LICENSES.chromium.html + 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}/@joplinapp-desktop" "/usr/bin/${PN}" + make_desktop_entry "${PN}" Joplin @joplinapp-desktop "Office;" \ + "StartupWMClass=Joplin\nMimeType=x-scheme-handler/joplin;" +} diff --git a/app-office/joplin-desktop/metadata.xml b/app-office/joplin-desktop/metadata.xml new file mode 100644 index 000000000000..0eb7821811bd --- /dev/null +++ b/app-office/joplin-desktop/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> + +<pkgmetadata> + <maintainer type="person"> + <email>xgqt@gentoo.org</email> + <name>Maciej Barć</name> + </maintainer> + <longdescription> + Joplin is a free, open source note taking and to-do application, which can + handle a large number of notes organised into notebooks. The notes are + searchable, can be copied, tagged and modified either from the applications + directly or from your own text editor. The notes are in Markdown format. + </longdescription> + <upstream> + <bugs-to>https://github.com/laurent22/joplin/issues/</bugs-to> + <remote-id type="github">laurent22/joplin</remote-id> + </upstream> +</pkgmetadata> |