commit:     d142fb6689ffdff249e9ca3574393a0e0731190e
Author:     ingenarel <ingenarelitems <AT> gmail <DOT> com>
AuthorDate: Sat Feb 15 20:25:03 2025 +0000
Commit:     Saad Abdullah <ingenarelitems <AT> gmail <DOT> com>
CommitDate: Sat Feb 15 20:25:03 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d142fb66

net-im/legcord-bin: add 1.1.0

Signed-off-by: ingenarel <ingenarelitems <AT> gmail.com>

 net-im/legcord-bin/Manifest                 |  1 +
 net-im/legcord-bin/legcord-bin-1.1.0.ebuild | 99 +++++++++++++++++++++++++++++
 2 files changed, 100 insertions(+)

diff --git a/net-im/legcord-bin/Manifest b/net-im/legcord-bin/Manifest
index 21dffcbe4..4f3f15f72 100644
--- a/net-im/legcord-bin/Manifest
+++ b/net-im/legcord-bin/Manifest
@@ -1 +1,2 @@
 DIST legcord-bin-1.0.8.deb 75993910 BLAKE2B 
607763cc381dff3fd95ce57ee6a35ef6158b9420c6cf6dc52f7e7178f8efd560dcfbc77f8a4635c83ecf90ea5bbd9e395660269ad8960cec7e2887f10873231e
 SHA512 
bb3f81dd553b40b2b6eaeacd24c82af88bfb2a22aeee8ba3d90b55119567617b2473bb6a61a5e2aa45a989fcb0a7c831de34056570ef164f1035365e0bda0d58
+DIST legcord-bin-1.1.0.deb 82450954 BLAKE2B 
d0e4388f110dad636db9b76d7c85fc18693d4fecd15d7f8d4cdb7caac067909e488be9b6b5ccedc5fba30070a3e70949370831b03c586d75b4b3f6bf251e3f51
 SHA512 
4769709df97e67c81ef5e9a05241041d332d088200196fb9a0413bdc9c930c7538beb354c94c998b50d70b6aae76cf2441d3a3a45e2efd2027b5c580a9da08fc

diff --git a/net-im/legcord-bin/legcord-bin-1.1.0.ebuild 
b/net-im/legcord-bin/legcord-bin-1.1.0.ebuild
new file mode 100644
index 000000000..99afe9822
--- /dev/null
+++ b/net-im/legcord-bin/legcord-bin-1.1.0.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2024 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"
+
+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}/${PN}-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}
+}

Reply via email to