mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 05:23:01 -04:00
net-im/legcord-bin: add 1.2.4
Signed-off-by: dsaf <ghostyn678+git@gmail.com>
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
DIST legcord-bin-1.2.2-amd64.deb 108319816 BLAKE2B c5162d57f944606c796b0df6455256b2575458bb020896cc8eb8539855ce704b7aeceaddf51f2f419370988c56894780c416ac3e0a9c854065cb647a10c7e9d0 SHA512 cb4faf9c8ac4876135272d5dce27b72e36dae4ef8d4e0e2992c9dce58eea484915360fcc358095af16b6b46828419be04cc42ea3e18fa63b6bb0f2508e23f0a5
|
||||
DIST legcord-bin-1.2.2-arm64.deb 103259120 BLAKE2B b321403d44918bbeb8e0fc76680a527548aa8ba4e889d490dbd2cbd3077a6165ffdf664404eddd10d734d4f288657cb48fc1bb5f5fea31a2e5e1c1827489b45d SHA512 f8300a37ce7325482e76fab3c95a3444bc75e02f634a604467a5e904af7e2101ef2fddabb617e2ca5adc4ef497f70bbf2f66f47c3a112bd1907e1ccf2ea90035
|
||||
DIST legcord-bin-1.2.2.metainfo.xml 11904 BLAKE2B 8e0b2865ca198901e332cc243575c304509481b91d8c94a7ab5f8fd6aafd6560499aacad20c0f4fcb82486b01aea82a57d163afcf31179d87d6f59fcdf3a442b SHA512 2fa68cc64110bd03cbc31656d38123d34128513ee9f4f83609a27d6f4a7fba756676704ac94d92a072ba86ae5ba21d21ba6397842351a60c1bc3d4f082f287c8
|
||||
DIST legcord-bin-1.2.4-amd64.deb 107140020 BLAKE2B d5c12b3bc2740955d760fff5c43d276ce4ba30a88a5bd5cfb0a63c01eaaa5af8b33855961874c53038445794a9b4d30496206b7c5ed593918ef43a910c1b551b SHA512 8b7aca807e4b46978a7cd7b7257ada168d7643b5c1cc6e78c700dc4bab1efe5328a8f9a66261ff8d4d34265b5646ae005f01f799c68583a5ad7f0438afa6e928
|
||||
DIST legcord-bin-1.2.4-arm64.deb 101733096 BLAKE2B 6da50273a0b525e7787878f52921a2c094ec09d718ef492075dd7731ffa2f4bc61491c5c3392117ffeeee59881ee9dc45675f3d1f2bbd016bdf4a3ff71ff9392 SHA512 9344e5e0df374669aebfc92bad0b4065d2c1d2ec9a74e479fb1d93e67ee7e5f1dfd1fdb524abab6ae184406b025f92bda9dfa3b32da8ac8ec034acedc14bf48d
|
||||
DIST legcord-bin-1.2.4.metainfo.xml 19684 BLAKE2B eb2b8ed5da274cd448cf13e8862e47eb8fb45796b0dcbb39af985b7a0742a9d2f8152ae84b3c64df9e718c9e7ce5f25a2d8ca2ea57afa27f157021d6310053d3 SHA512 24ac6af3ce0437f13dd448691c8e088ce1842d327db2fcbc151aefcd9cb4181889aeb9d9843a29eec879971826fa7e796c13bdff7f6853ad252ee0675eafca1c
|
||||
|
||||
133
net-im/legcord-bin/legcord-bin-1.2.4.ebuild
Normal file
133
net-im/legcord-bin/legcord-bin-1.2.4.ebuild
Normal file
@@ -0,0 +1,133 @@
|
||||
# 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 )
|
||||
"
|
||||
# metainfo
|
||||
SRC_URI+=" https://github.com/Legcord/Legcord/releases/download/v${PV}/app.legcord.Legcord.metainfo.xml -> ${P}.metainfo.xml"
|
||||
|
||||
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="*"
|
||||
|
||||
src_unpack() {
|
||||
use amd64 && unpack_deb "${P}-amd64.deb"
|
||||
use arm64 && unpack_deb "${P}-arm64.deb"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# match with syslink
|
||||
sed -i "s|^Exec=.*|Exec=/usr/bin/legcord-bin %U|" \
|
||||
"usr/share/applications/${MY_PN}.desktop" || die
|
||||
|
||||
# rm binary libraries for unsupported architectures
|
||||
local libdir="opt/${MY_PN}/resources/app.asar.unpacked/node_modules"
|
||||
|
||||
local targets=(
|
||||
darwin_arm64
|
||||
darwin_x64
|
||||
freebsd_arm64
|
||||
freebsd_ia32
|
||||
freebsd_x64
|
||||
linux_armhf
|
||||
linux_ia32
|
||||
linux_loong64
|
||||
linux_riscv64d
|
||||
musl_arm64
|
||||
musl_x64
|
||||
openbsd_ia32
|
||||
openbsd_x64
|
||||
win32_arm64
|
||||
win32_ia32
|
||||
win32_x64
|
||||
)
|
||||
|
||||
if use amd64; then
|
||||
rm "${libdir}/@vencord/venmic/prebuilds/venmic-addon-linux-arm64/node-napi-v7.node" || die
|
||||
targets+=( linux_arm64 )
|
||||
fi
|
||||
|
||||
if use arm64; then
|
||||
rm "${libdir}/@vencord/venmic/prebuilds/venmic-addon-linux-x64/node-napi-v7.node" || die
|
||||
targets+=( linux_x64 )
|
||||
fi
|
||||
|
||||
local t
|
||||
for t in "${targets[@]}"; do
|
||||
rm -r "${libdir}/koffi/build/koffi/${t}" || die
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local destdir="/opt/${PN}"
|
||||
|
||||
exeinto "${destdir}"
|
||||
doexe "opt/${MY_PN}/${MY_PN}"
|
||||
doexe "opt/${MY_PN}/chrome-sandbox"
|
||||
doexe "opt/${MY_PN}/chrome_crashpad_handler"
|
||||
|
||||
insinto "${destdir}"
|
||||
doins opt/"${MY_PN}"/*.bin
|
||||
doins opt/"${MY_PN}"/*.pak
|
||||
doins opt/"${MY_PN}"/*.so
|
||||
|
||||
doins "opt/${MY_PN}/icudtl.dat"
|
||||
|
||||
doins -r "opt/${MY_PN}/locales"
|
||||
doins -r "opt/${MY_PN}/resources"
|
||||
|
||||
dosym ../../opt/"${PN}"/"${MY_PN}" /usr/bin/"${PN}"
|
||||
|
||||
local x
|
||||
for x in 16 32 64 128 256 512; do
|
||||
doicon -s ${x} usr/share/icons/hicolor/${x}*/*
|
||||
done
|
||||
|
||||
domenu "usr/share/applications/${MY_PN}.desktop"
|
||||
|
||||
insinto /usr/share/metainfo
|
||||
newins "${DISTDIR}/${P}.metainfo.xml" app.legcord.${MY_PN}.metainfo.xml
|
||||
}
|
||||
Reference in New Issue
Block a user