commit: d2ab445cb76007936919e5f89b067d99de648aec Author: dsaf <ghostyn678+git <AT> gmail <DOT> com> AuthorDate: Mon Jan 26 06:34:51 2026 +0000 Commit: David Roman <davidroman96 <AT> gmail <DOT> com> CommitDate: Mon Jan 26 06:36:45 2026 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d2ab445c
net-im/legcord-bin: fix QA, keyword 1.1.6 for -* Signed-off-by: dsaf <ghostyn678+git <AT> gmail.com> net-im/legcord-bin/Manifest | 2 - net-im/legcord-bin/legcord-bin-1.1.6.ebuild | 79 +++++++++++++---------------- 2 files changed, 35 insertions(+), 46 deletions(-) diff --git a/net-im/legcord-bin/Manifest b/net-im/legcord-bin/Manifest index e8807d594b..d474187af9 100644 --- a/net-im/legcord-bin/Manifest +++ b/net-im/legcord-bin/Manifest @@ -1,4 +1,2 @@ -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-amd64.deb 105068616 BLAKE2B 330c40ef2c5753fdf50dc45a4073569f90d5d0caf9a388263d050006950d570c3f56daf4c98c462ce1966fe6ef6200185640dc4fb9a8fd0585b0ded0dcb99bb4 SHA512 9911ea722de2a561e61eb5e5da87152899f9023520025622219b9b1ab779f0b68178385daf4f8ce8ecb46afab4a52b39c52c94946eea93d49d182a256bcad02e DIST legcord-bin-1.1.6-arm64.deb 99729972 BLAKE2B 915b26a084476f14a6e0e11279f549d5aa906f0ab4274435da1213ac174080a190940833a9acc86000fbb3744fc9534c39c0da84c591c4661be897f7e2c5cde1 SHA512 fa1509c0639d3ee81df7fc57a9bac6f1aacd9aea7ecfd36e4812cc967f7b9d8ce04484435a7cc4711a99f1758014459e018e01cae706531aedd478bbfe95f5a0 diff --git a/net-im/legcord-bin/legcord-bin-1.1.6.ebuild b/net-im/legcord-bin/legcord-bin-1.1.6.ebuild index 49a30f0946..355574f9f8 100644 --- a/net-im/legcord-bin/legcord-bin-1.1.6.ebuild +++ b/net-im/legcord-bin/legcord-bin-1.1.6.ebuild @@ -1,23 +1,25 @@ -# Copyright 1999-2025 Gentoo Authors +# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit unpacker desktop xdg +MY_PN="Legcord" + DESCRIPTION="Legcord is a custom client designed to enhance your Discord experience." HOMEPAGE="https://legcord.app/" SRC_URI=" -amd64? ( https://github.com/Legcord/Legcord/releases/download/v${PV}/Legcord-${PV}-linux-amd64.deb -> ${P}-amd64.deb ) -arm64? ( https://github.com/Legcord/Legcord/releases/download/v${PV}/Legcord-${PV}-linux-arm64.deb -> ${P}-arm64.deb ) + amd64? ( https://github.com/Legcord/Legcord/releases/download/v${PV}/Legcord-${PV}-linux-amd64.deb -> ${P}-amd64.deb ) + arm64? ( https://github.com/Legcord/Legcord/releases/download/v${PV}/Legcord-${PV}-linux-arm64.deb -> ${P}-arm64.deb ) " S="${WORKDIR}" LICENSE="MIT BSD OSL-3.0" SLOT="0" -KEYWORDS="~amd64 ~arm64" +KEYWORDS="-* ~amd64 ~arm64" RESTRICT="bindist mirror test strip" @@ -44,67 +46,56 @@ RDEPEND=" x11-libs/libXrandr x11-libs/pango " -QA_PREBUILT=".*" -PATCHES=( - "${FILESDIR}/${P}-desktop.patch" -) +QA_PREBUILT="*" src_unpack() { - if use amd64; then - unpack_deb "${P}-amd64.deb" - elif use arm64; then - unpack_deb "${P}-arm64.deb" - else - die - fi + unpack_deb ${A} } 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 + # match with syslink + sed -i "s|^Exec=.*|Exec=/usr/bin/legcord-bin %U|" \ + "usr/share/applications/${MY_PN}.desktop" || 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" + local x + for x in 16 32 64 128 256 512; do + doicon -s ${x} usr/share/icons/hicolor/${x}*/* + done - domenu "${PN}.desktop" + domenu "usr/share/applications/${MY_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" + doexe "opt/${MY_PN}/${MY_PN}" + doexe "opt/${MY_PN}/chrome-sandbox" + doexe "opt/${MY_PN}/chrome_crashpad_handler" 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" + doins opt/"${MY_PN}"/*.bin + doins opt/"${MY_PN}"/*.pak + doins opt/"${MY_PN}"/*.so - fperms -R 644 "${DESTDIR}/locales" - fperms -R 644 "${DESTDIR}/resources" + doins "opt/${MY_PN}/icudtl.dat" - # Fix bug 930639 - fperms -R a+r "${DESTDIR}"/resources/ - fperms a+x "${DESTDIR}"/resources/ + #insopts -m0766 + doins -r "opt/${MY_PN}/locales" + doins -r "opt/${MY_PN}/resources" - fowners root "${DESTDIR}/chrome-sandbox" - fperms 4711 "${DESTDIR}/chrome-sandbox" + #fperms -R 644 "${DESTDIR}/locales" + #fperms -R 644 "${DESTDIR}/resources" + + # Fix bug 930639 + #fperms -R a+r "${DESTDIR}"/resources/ + #fperms a+x "${DESTDIR}"/resources/ - doins "opt/${PN}/chrome_crashpad_handler" - fperms 755 "${DESTDIR}/chrome_crashpad_handler" + #fowners root "${DESTDIR}/chrome-sandbox" + #fperms 4711 "${DESTDIR}/chrome-sandbox" - dosym -r /opt/${PN}/Legcord /usr/bin/${PN} + dosym ../../opt/"${PN}"/"${MY_PN}" /usr/bin/"${PN}" }
