commit: e31fc1028ea9c01a51e8fb6fe0e7e28ee13141ef Author: AquaOneLove <aquaonelove <AT> proton <DOT> me> AuthorDate: Mon Dec 8 00:46:38 2025 +0000 Commit: AquaOneLove <aquaonelove <AT> proton <DOT> me> CommitDate: Mon Dec 8 00:46:38 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e31fc102
net-im/legcord-bin: add 1.1.6 Signed-off-by: AquaOneLove <aquaonelove <AT> proton.me> net-im/legcord-bin/Manifest | 1 + .../files/legcord-bin-1.1.6-desktop.patch | 12 +++ net-im/legcord-bin/legcord-bin-1.1.6.ebuild | 99 ++++++++++++++++++++++ 3 files changed, 112 insertions(+) diff --git a/net-im/legcord-bin/Manifest b/net-im/legcord-bin/Manifest index a181f7c1c5..7de9b2d906 100644 --- a/net-im/legcord-bin/Manifest +++ b/net-im/legcord-bin/Manifest @@ -1,2 +1,3 @@ DIST legcord-bin-1.1.4.deb 82544636 BLAKE2B ba2ef2406992db2f8998459e4d839ecbd089c05eb75b72a67ac9bc05202e76b6cefe999771a2f971a29e43ae5fd28ae12e522de2e86092c0e8cbc9d887ceac1d SHA512 8868d7fc72632d9b87ebb96c3048fc2ff9a96e081b9840144072f7de36c80ddeb1475f680510b0b2e7fce18233a2d152e23932daf26b1dae8121fb5d7d4702d0 DIST legcord-bin-1.1.5.deb 82572182 BLAKE2B afbae8f710b5247b9eb146552631c5c749020ff1c3615f3d0ce775fcd3e16dfac8e363faa043085dcadcee2414a1b978cf624291d24b50af313c23e1bae7b52f SHA512 52335f920d7148c13b69aedb468e3070dcf76d632f56971d52fd3c04d0c2aeb43d67fb31d67668e85a81c9477b18467225f8156966087dd42d71069357b0e2e9 +DIST legcord-bin-1.1.6.deb 105068616 BLAKE2B 330c40ef2c5753fdf50dc45a4073569f90d5d0caf9a388263d050006950d570c3f56daf4c98c462ce1966fe6ef6200185640dc4fb9a8fd0585b0ded0dcb99bb4 SHA512 9911ea722de2a561e61eb5e5da87152899f9023520025622219b9b1ab779f0b68178385daf4f8ce8ecb46afab4a52b39c52c94946eea93d49d182a256bcad02e diff --git a/net-im/legcord-bin/files/legcord-bin-1.1.6-desktop.patch b/net-im/legcord-bin/files/legcord-bin-1.1.6-desktop.patch new file mode 100644 index 0000000000..02a0123eb2 --- /dev/null +++ b/net-im/legcord-bin/files/legcord-bin-1.1.6-desktop.patch @@ -0,0 +1,12 @@ +diff --git a/usr/share/applications/Legcord.desktop b/usr/share/applications/Legcord.desktop +index fdecb63..c374b75 100644 +--- a/usr/share/applications/Legcord.desktop ++++ b/usr/share/applications/Legcord.desktop +@@ -1,6 +1,6 @@ + [Desktop Entry] + Name=Legcord +-Exec=/opt/Legcord/Legcord %U ++Exec=/usr/bin/legcord-bin %U + Terminal=false + Type=Application + Icon=Legcord diff --git a/net-im/legcord-bin/legcord-bin-1.1.6.ebuild b/net-im/legcord-bin/legcord-bin-1.1.6.ebuild new file mode 100644 index 0000000000..8321b197bf --- /dev/null +++ b/net-im/legcord-bin/legcord-bin-1.1.6.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit unpacker desktop xdg + +DESCRIPTION="Legcord is a custom client designed to enhance your Discord experience." +HOMEPAGE="https://legcord.app/" +SRC_URI="https://github.com/Legcord/Legcord/releases/download/v${PV}/Legcord-${PV}-linux-amd64.deb -> ${P}.deb" +S="${WORKDIR}" + +LICENSE="MIT BSD OSL-3.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64" + +RESTRICT="bindist mirror test strip" + +RDEPEND=" + app-accessibility/at-spi2-core:2 + dev-libs/expat + dev-libs/glib:2 + dev-libs/nspr + dev-libs/nss + media-libs/alsa-lib + media-libs/mesa + net-print/cups + sys-apps/dbus + x11-libs/cairo + x11-libs/gtk+:3 + x11-libs/libdrm + x11-libs/libX11 + x11-libs/libxcb + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libxkbcommon + x11-libs/libXrandr + x11-libs/pango +" +QA_PREBUILT=".*" + +PATCHES=( + "${FILESDIR}/${P}-desktop.patch" +) + +src_unpack() { + unpack_deb "${P}.deb" +} + +src_prepare() { + default + + mv "${WORKDIR}/opt/Legcord" "${WORKDIR}/opt/${PN}" || die + mv "${WORKDIR}/usr/share/applications/Legcord.desktop" "${WORKDIR}/${PN}.desktop" || die + mv "${WORKDIR}"/usr/share/icons/hicolor/* "${WORKDIR}/" || die + rm -rf "${WORKDIR}/usr/share/doc" || die +} + +src_install() { + DESTDIR="/opt/${PN}" + + doicon -s 16 "16x16/apps/Legcord.png" + doicon -s 32 "32x32/apps/Legcord.png" + doicon -s 48 "48x48/apps/Legcord.png" + doicon -s 64 "64x64/apps/Legcord.png" + doicon -s 128 "128x128/apps/Legcord.png" + doicon -s 256 "256x256/apps/Legcord.png" + doicon -s 512 "512x512/apps/Legcord.png" + doicon -s 1024 "1024x1024/apps/Legcord.png" + + domenu "${PN}.desktop" + + exeinto "${DESTDIR}" + doexe "opt/${PN}/Legcord" "opt/${PN}/chrome-sandbox" "opt/${PN}/libEGL.so" \ + "opt/${PN}/libffmpeg.so" "opt/${PN}/libGLESv2.so" "opt/${PN}/libvk_swiftshader.so" + + insinto "${DESTDIR}" + doins "opt/${PN}/chrome_100_percent.pak" "opt/${PN}/chrome_200_percent.pak" "opt/${PN}/icudtl.dat" \ + "opt/${PN}/resources.pak" "opt/${PN}/snapshot_blob.bin" "opt/${PN}/v8_context_snapshot.bin" + insopts -m0766 + doins -r "opt/${PN}/locales" "opt/${PN}/resources" + + fperms -R 644 "${DESTDIR}/locales" + fperms -R 644 "${DESTDIR}/resources" + + # Fix bug 930639 + fperms -R a+r "${DESTDIR}"/resources/ + fperms a+x "${DESTDIR}"/resources/ + + fowners root "${DESTDIR}/chrome-sandbox" + fperms 4711 "${DESTDIR}/chrome-sandbox" + + doins "opt/${PN}/chrome_crashpad_handler" + fperms 755 "${DESTDIR}/chrome_crashpad_handler" + + dosym -r /opt/${PN}/Legcord /usr/bin/${PN} +}
