aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucio Sauer <watermanpaint@posteo.net>2024-08-06 03:30:07 +0200
committerLucio Sauer <watermanpaint@posteo.net>2024-08-06 04:11:40 +0200
commitf4a782fc997f5657d57d0f87215f9d888f936110 (patch)
tree75db8a414bfa2856a2b83c03324a1eba09fc082a /app-misc/ledger-live-bin
parentapp-misc/ledger-live-bin: add missing runtime deps (diff)
downloadguru-f4a782fc997f5657d57d0f87215f9d888f936110.tar.gz
guru-f4a782fc997f5657d57d0f87215f9d888f936110.tar.bz2
guru-f4a782fc997f5657d57d0f87215f9d888f936110.zip
app-misc/ledger-live-bin: disable automatic updates
Installing the desktop file fixes another runtime issue where it previously was impossible to close the Ledger Recover screen due to /usr/bin/ledger-live not being the default handler for the x-scheme-handler/ledgerlive MIME type. Instead, the default-url-scheme-handler tried and failed to handle ledgerlive://myledger. Bug: https://github.com/LedgerHQ/ledger-live/issues/6785 Closes: https://bugs.gentoo.org/937379 Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>
Diffstat (limited to 'app-misc/ledger-live-bin')
-rw-r--r--app-misc/ledger-live-bin/ledger-live-bin-2.79.1-r1.ebuild34
-rw-r--r--app-misc/ledger-live-bin/ledger-live-bin-2.81.2-r1.ebuild34
-rw-r--r--app-misc/ledger-live-bin/ledger-live-bin-2.83.0-r1.ebuild34
3 files changed, 87 insertions, 15 deletions
diff --git a/app-misc/ledger-live-bin/ledger-live-bin-2.79.1-r1.ebuild b/app-misc/ledger-live-bin/ledger-live-bin-2.79.1-r1.ebuild
index b5f27a67c..ee450216b 100644
--- a/app-misc/ledger-live-bin/ledger-live-bin-2.79.1-r1.ebuild
+++ b/app-misc/ledger-live-bin/ledger-live-bin-2.79.1-r1.ebuild
@@ -3,11 +3,13 @@
EAPI=8
+inherit desktop xdg
+
DESCRIPTION="Manager for the Ledger hardware wallet"
HOMEPAGE="https://www.ledger.com/"
SRC_URI="https://download.live.ledger.com/ledger-live-desktop-${PV}-linux-x86_64.AppImage"
-S="${WORKDIR}"
+S="${WORKDIR}/squashfs-root"
# logos of Ledger are non-free
LICENSE="ledger-live-ToU MIT"
@@ -25,8 +27,6 @@ RDEPEND="
media-libs/mesa
net-print/cups
sys-apps/dbus
- sys-fs/fuse:0
- sys-libs/zlib
x11-libs/cairo
x11-libs/gtk+:3
x11-libs/libX11
@@ -43,7 +43,31 @@ RDEPEND="
QA_PREBUILT="*"
+src_unpack() {
+ cp "${DISTDIR}"/ledger-live-desktop-${PV}-linux-x86_64.AppImage ${P}.AppImage || die
+ chmod +x ${P}.AppImage || die
+ ./${P}.AppImage --appimage-extract || die
+ rm ${P}.AppImage || die
+}
+
+src_prepare() {
+ default
+ sed -e 's/AppRun --no-sandbox/ledger-live/' \
+ -e '/X-AppImage-Version/d' \
+ -i ledger-live-desktop.desktop || die
+}
+
src_install() {
- cp "${DISTDIR}/ledger-live-desktop-${PV}-linux-x86_64.AppImage" ledger-live || die
- dobin ledger-live
+ exeinto /opt/${PN}
+ doexe chrome{-sandbox,_crashpad_handler} ledger-live-desktop
+ insinto /opt/${PN}
+ doins -r *.{bin,dat,json,pak} locales resources lib*
+ fperms u+s /opt/${PN}/chrome-sandbox
+ domenu ledger-live-desktop.desktop
+ insinto /usr/share
+ doins -r usr/share/icons
+ dosym -r /opt/${PN}/ledger-live-desktop /usr/bin/ledger-live
+ # bug 937379
+ rm "${ED}"/opt/${PN}/resources/app-update.yml || die
+ find "${ED}" -type d -exec chmod 755 {} + || die
}
diff --git a/app-misc/ledger-live-bin/ledger-live-bin-2.81.2-r1.ebuild b/app-misc/ledger-live-bin/ledger-live-bin-2.81.2-r1.ebuild
index b5f27a67c..ee450216b 100644
--- a/app-misc/ledger-live-bin/ledger-live-bin-2.81.2-r1.ebuild
+++ b/app-misc/ledger-live-bin/ledger-live-bin-2.81.2-r1.ebuild
@@ -3,11 +3,13 @@
EAPI=8
+inherit desktop xdg
+
DESCRIPTION="Manager for the Ledger hardware wallet"
HOMEPAGE="https://www.ledger.com/"
SRC_URI="https://download.live.ledger.com/ledger-live-desktop-${PV}-linux-x86_64.AppImage"
-S="${WORKDIR}"
+S="${WORKDIR}/squashfs-root"
# logos of Ledger are non-free
LICENSE="ledger-live-ToU MIT"
@@ -25,8 +27,6 @@ RDEPEND="
media-libs/mesa
net-print/cups
sys-apps/dbus
- sys-fs/fuse:0
- sys-libs/zlib
x11-libs/cairo
x11-libs/gtk+:3
x11-libs/libX11
@@ -43,7 +43,31 @@ RDEPEND="
QA_PREBUILT="*"
+src_unpack() {
+ cp "${DISTDIR}"/ledger-live-desktop-${PV}-linux-x86_64.AppImage ${P}.AppImage || die
+ chmod +x ${P}.AppImage || die
+ ./${P}.AppImage --appimage-extract || die
+ rm ${P}.AppImage || die
+}
+
+src_prepare() {
+ default
+ sed -e 's/AppRun --no-sandbox/ledger-live/' \
+ -e '/X-AppImage-Version/d' \
+ -i ledger-live-desktop.desktop || die
+}
+
src_install() {
- cp "${DISTDIR}/ledger-live-desktop-${PV}-linux-x86_64.AppImage" ledger-live || die
- dobin ledger-live
+ exeinto /opt/${PN}
+ doexe chrome{-sandbox,_crashpad_handler} ledger-live-desktop
+ insinto /opt/${PN}
+ doins -r *.{bin,dat,json,pak} locales resources lib*
+ fperms u+s /opt/${PN}/chrome-sandbox
+ domenu ledger-live-desktop.desktop
+ insinto /usr/share
+ doins -r usr/share/icons
+ dosym -r /opt/${PN}/ledger-live-desktop /usr/bin/ledger-live
+ # bug 937379
+ rm "${ED}"/opt/${PN}/resources/app-update.yml || die
+ find "${ED}" -type d -exec chmod 755 {} + || die
}
diff --git a/app-misc/ledger-live-bin/ledger-live-bin-2.83.0-r1.ebuild b/app-misc/ledger-live-bin/ledger-live-bin-2.83.0-r1.ebuild
index b5f27a67c..ee450216b 100644
--- a/app-misc/ledger-live-bin/ledger-live-bin-2.83.0-r1.ebuild
+++ b/app-misc/ledger-live-bin/ledger-live-bin-2.83.0-r1.ebuild
@@ -3,11 +3,13 @@
EAPI=8
+inherit desktop xdg
+
DESCRIPTION="Manager for the Ledger hardware wallet"
HOMEPAGE="https://www.ledger.com/"
SRC_URI="https://download.live.ledger.com/ledger-live-desktop-${PV}-linux-x86_64.AppImage"
-S="${WORKDIR}"
+S="${WORKDIR}/squashfs-root"
# logos of Ledger are non-free
LICENSE="ledger-live-ToU MIT"
@@ -25,8 +27,6 @@ RDEPEND="
media-libs/mesa
net-print/cups
sys-apps/dbus
- sys-fs/fuse:0
- sys-libs/zlib
x11-libs/cairo
x11-libs/gtk+:3
x11-libs/libX11
@@ -43,7 +43,31 @@ RDEPEND="
QA_PREBUILT="*"
+src_unpack() {
+ cp "${DISTDIR}"/ledger-live-desktop-${PV}-linux-x86_64.AppImage ${P}.AppImage || die
+ chmod +x ${P}.AppImage || die
+ ./${P}.AppImage --appimage-extract || die
+ rm ${P}.AppImage || die
+}
+
+src_prepare() {
+ default
+ sed -e 's/AppRun --no-sandbox/ledger-live/' \
+ -e '/X-AppImage-Version/d' \
+ -i ledger-live-desktop.desktop || die
+}
+
src_install() {
- cp "${DISTDIR}/ledger-live-desktop-${PV}-linux-x86_64.AppImage" ledger-live || die
- dobin ledger-live
+ exeinto /opt/${PN}
+ doexe chrome{-sandbox,_crashpad_handler} ledger-live-desktop
+ insinto /opt/${PN}
+ doins -r *.{bin,dat,json,pak} locales resources lib*
+ fperms u+s /opt/${PN}/chrome-sandbox
+ domenu ledger-live-desktop.desktop
+ insinto /usr/share
+ doins -r usr/share/icons
+ dosym -r /opt/${PN}/ledger-live-desktop /usr/bin/ledger-live
+ # bug 937379
+ rm "${ED}"/opt/${PN}/resources/app-update.yml || die
+ find "${ED}" -type d -exec chmod 755 {} + || die
}