commit: 2592d3720838e0981470079771e5a7ba34989d9f Author: Dawn Xu <18202203719 <AT> 163 <DOT> com> AuthorDate: Mon Nov 11 14:10:12 2024 +0000 Commit: Dawn Xu <18202203719 <AT> 163 <DOT> com> CommitDate: Mon Nov 11 14:15:27 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2592d372
net-p2p/ipfs-desktop-bin: new package, add 0.39.0 Signed-off-by: Dawn Xu <18202203719 <AT> 163.com> net-p2p/ipfs-desktop-bin/Manifest | 1 + .../ipfs-desktop-bin-0.39.0.ebuild | 70 ++++++++++++++++++++++ net-p2p/ipfs-desktop-bin/metadata.xml | 15 +++++ 3 files changed, 86 insertions(+) diff --git a/net-p2p/ipfs-desktop-bin/Manifest b/net-p2p/ipfs-desktop-bin/Manifest new file mode 100644 index 000000000..6b96c1d2e --- /dev/null +++ b/net-p2p/ipfs-desktop-bin/Manifest @@ -0,0 +1 @@ +DIST ipfs-desktop-0.39.0-linux-amd64.deb 126937128 BLAKE2B 53ab176bb87a81cef9e9e5b968ff8ed2207be691aa19ce95cd45664590cea3a6ce071b67b67883bf3de1cb7e2b4a1fad4df8c64e5590dc8f06f46dd2fc66d543 SHA512 200bbf5289a0f1b091afd6ea102303aba9831da2fb926bb7adf5c22099cf5cee68ae1c533de81c1a11ab7af837fc4609d7caf60b97361ceedc7a2220423ac3e5 diff --git a/net-p2p/ipfs-desktop-bin/ipfs-desktop-bin-0.39.0.ebuild b/net-p2p/ipfs-desktop-bin/ipfs-desktop-bin-0.39.0.ebuild new file mode 100644 index 000000000..97c2c2658 --- /dev/null +++ b/net-p2p/ipfs-desktop-bin/ipfs-desktop-bin-0.39.0.ebuild @@ -0,0 +1,70 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit desktop xdg unpacker wrapper +DESCRIPTION="A desktop client for IPFS. The IPFS's Native Application" +HOMEPAGE="https://github.com/ipfs/ipfs-desktop" +SRC_URI="https://github.com/ipfs/ipfs-desktop/releases/download/v${PV}/ipfs-desktop-${PV}-linux-amd64.deb" + +S="${WORKDIR}" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + x11-libs/gtk+:3 + x11-libs/libnotify + dev-libs/nss + x11-libs/libXScrnSaver + x11-libs/libXtst + x11-misc/xdg-utils + app-accessibility/at-spi2-core + sys-apps/util-linux + app-crypt/libsecret + dev-libs/expat + dev-libs/glib:2 + dev-libs/nspr + media-libs/alsa-lib + media-libs/mesa + net-print/cups + sys-apps/dbus + x11-libs/cairo + x11-libs/gdk-pixbuf:2 + x11-libs/libX11 + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXrandr + x11-libs/libdrm + x11-libs/libxcb + x11-libs/libxkbcommon + x11-libs/pango + net-p2p/kubo +" +QA_PREBUILT="*" +src_prepare(){ + default + unpacker "${S}/usr/share/doc/ipfs-desktop/changelog.gz" +} +src_install(){ + # clean up build-in kubo + rm -r "${S}/opt/IPFS Desktop/resources/app.asar.unpacked/node_modules/kubo/kubo" || die + + insinto "/opt" + doins -r "${S}/opt/IPFS Desktop" + make_wrapper ipfs-desktop "env KUBO_BINARY=$(which ipfs) /opt/IPFS\\ Desktop/ipfs-desktop" + domenu "${S}/usr/share/applications/ipfs-desktop.desktop" + dodoc "${S}/changelog" + insinto "/usr/share" + # doins -r "${S}/usr/share/icons" + local size + for size in 16 32 48 64 128 256 512; do + doicon -s ${size} "${S}/usr/share/icons/hicolor/${size}x${size}/apps/ipfs-desktop.png" + done + fperms +x "/opt/IPFS Desktop/ipfs-desktop" + fperms +x "/opt/IPFS Desktop/chrome-sandbox" + fperms +x "/opt/IPFS Desktop/chrome_crashpad_handler" +} + diff --git a/net-p2p/ipfs-desktop-bin/metadata.xml b/net-p2p/ipfs-desktop-bin/metadata.xml new file mode 100644 index 000000000..032540772 --- /dev/null +++ b/net-p2p/ipfs-desktop-bin/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>[email protected]</email> + <name>Dawn Xu</name> + </maintainer> + <upstream> + <remote-id type = "github">ipfs/ipfs-desktop</remote-id> + <maintainer> + <name>ipfs</name> + <email>[email protected]</email> + </maintainer> + </upstream> +</pkgmetadata>
