Updated discord

This commit is contained in:
Torsten Kurbad 2024-01-02 22:14:09 +01:00
parent 591d02bb6a
commit e14effa535
3 changed files with 272 additions and 0 deletions

View File

@ -1,3 +1,7 @@
DIST discord-0.0.35.tar.gz 92973520 BLAKE2B ed0c72d39e2da6afb640926e5b96b6a6a689d7f82908898c7622aa9ba74dfbec16746178f17b294017d40a0ede376cd86580fd37b64c6be42c423c43b61dbf02 SHA512 a0f1db24e38a2d48ea8521a7e8e638a401bdfc407b64e21c7a0dde241eb10e4988fcdc916ed13d45012ae4ce25b3c53d36bf97b011cf569cb81e9f1b7c2d6eeb DIST discord-0.0.35.tar.gz 92973520 BLAKE2B ed0c72d39e2da6afb640926e5b96b6a6a689d7f82908898c7622aa9ba74dfbec16746178f17b294017d40a0ede376cd86580fd37b64c6be42c423c43b61dbf02 SHA512 a0f1db24e38a2d48ea8521a7e8e638a401bdfc407b64e21c7a0dde241eb10e4988fcdc916ed13d45012ae4ce25b3c53d36bf97b011cf569cb81e9f1b7c2d6eeb
DIST discord-0.0.37.tar.gz 92978089 BLAKE2B ebdc2e74e4c92dac32d06c1039d6199e91d1a8e76bdb51a8caa1ef4f80fbbf82e93a54811104bb6144a4ebb0d0a61b114445d0049cea23312adb8c9d5755138f SHA512 495969155a99364a22fef5d830adec5c03c25ac118d560b1e346fa9190866f9a038c07664124f8f835b77ba4e4d2a268a8eab86dea54274de4904ec374a2c005
DIST discord-0.0.39.tar.gz 92977064 BLAKE2B 95f30148782de35e5c5798867f4433163d53ede9538e3c3e6198c20c754a6ffc8f012cd2b85ad47344664ebfbab2ef59f9cf6ebf520daa656d8f05f300ae8789 SHA512 9f18aea5d82f5db4efa9db9babbc440b24e47dc80df18df5cc58d99d677f1c0863df21ed96d69896785f8fbe0dc0ff1f7317398b8f39606289da79f5a38074f1
EBUILD discord-0.0.35.ebuild 3391 BLAKE2B c8ee5719efdeb4f940ef16a8e07cc828df3d66f9f339ac1b134713083e784c4e3c08b1373bc9d33ad591ef936d89c48edd3a05aefd23af3468911f8d930a8e8a SHA512 103ba174ce8f7b566d767dff33f3a5c3514335e67f4c5b1e08ab4bcd7fcc8a970318a396346734bce965d9d1187b88fe41fa263f07d99189324244646e0144f7 EBUILD discord-0.0.35.ebuild 3391 BLAKE2B c8ee5719efdeb4f940ef16a8e07cc828df3d66f9f339ac1b134713083e784c4e3c08b1373bc9d33ad591ef936d89c48edd3a05aefd23af3468911f8d930a8e8a SHA512 103ba174ce8f7b566d767dff33f3a5c3514335e67f4c5b1e08ab4bcd7fcc8a970318a396346734bce965d9d1187b88fe41fa263f07d99189324244646e0144f7
EBUILD discord-0.0.37.ebuild 3391 BLAKE2B c8ee5719efdeb4f940ef16a8e07cc828df3d66f9f339ac1b134713083e784c4e3c08b1373bc9d33ad591ef936d89c48edd3a05aefd23af3468911f8d930a8e8a SHA512 103ba174ce8f7b566d767dff33f3a5c3514335e67f4c5b1e08ab4bcd7fcc8a970318a396346734bce965d9d1187b88fe41fa263f07d99189324244646e0144f7
EBUILD discord-0.0.39.ebuild 3391 BLAKE2B c8ee5719efdeb4f940ef16a8e07cc828df3d66f9f339ac1b134713083e784c4e3c08b1373bc9d33ad591ef936d89c48edd3a05aefd23af3468911f8d930a8e8a SHA512 103ba174ce8f7b566d767dff33f3a5c3514335e67f4c5b1e08ab4bcd7fcc8a970318a396346734bce965d9d1187b88fe41fa263f07d99189324244646e0144f7
MISC metadata.xml 506 BLAKE2B ff098a1c9341a94ebb21da57c3028d3d96e884e19e3adf2df8d50b694a1ca3eee61f5dfd90eaa557a0a0eee769fd11dfa7bbf63308386a11faa56d13687e33c3 SHA512 56baf0a5323057b4af83a7b7d760b2b1e071e15ca4eef6546eab4104fbdd026906f68d8023a3155f492d8d93cd7022c5d0017372cbaf2894b94bd253b2ce3665 MISC metadata.xml 506 BLAKE2B ff098a1c9341a94ebb21da57c3028d3d96e884e19e3adf2df8d50b694a1ca3eee61f5dfd90eaa557a0a0eee769fd11dfa7bbf63308386a11faa56d13687e33c3 SHA512 56baf0a5323057b4af83a7b7d760b2b1e071e15ca4eef6546eab4104fbdd026906f68d8023a3155f492d8d93cd7022c5d0017372cbaf2894b94bd253b2ce3665

View File

@ -0,0 +1,134 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MY_PN="${PN/-bin/}"
MY_PV="${PV/-r*/}"
CHROMIUM_LANGS="
af am ar bg bn ca cs da de el en-GB en-US es es-419 et fa fi fil fr gu he hi
hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt-BR pt-PT ro ru sk sl sr sv
sw ta te th tr uk ur vi zh-CN zh-TW
"
inherit chromium-2 desktop linux-info optfeature unpacker xdg
DESCRIPTION="All-in-one voice and text chat for gamers"
HOMEPAGE="https://discordapp.com"
SRC_URI="https://dl.discordapp.net/apps/linux/${MY_PV}/${MY_PN}-${MY_PV}.tar.gz"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="amd64"
RESTRICT="bindist mirror strip test"
IUSE="appindicator +seccomp"
RDEPEND="
>=app-accessibility/at-spi2-core-2.46.0:2
app-crypt/libsecret
dev-libs/expat
dev-libs/glib:2
dev-libs/nspr
dev-libs/nss
media-libs/alsa-lib
media-libs/fontconfig
media-libs/mesa[gbm(+)]
net-print/cups
sys-apps/dbus
sys-apps/util-linux
sys-libs/glibc
x11-libs/cairo
x11-libs/libdrm
x11-libs/gdk-pixbuf:2
x11-libs/gtk+:3
x11-libs/libX11
x11-libs/libXScrnSaver
x11-libs/libXcomposite
x11-libs/libXdamage
x11-libs/libXext
x11-libs/libXfixes
x11-libs/libXrandr
x11-libs/libxcb
x11-libs/libxkbcommon
x11-libs/libxshmfence
x11-libs/pango
appindicator? ( dev-libs/libayatana-appindicator )
"
DESTDIR="/opt/${MY_PN}"
QA_PREBUILT="*"
CONFIG_CHECK="~USER_NS"
S="${WORKDIR}/${MY_PN^}"
src_unpack() {
unpack ${MY_PN}-${MY_PV}.tar.gz
}
src_configure() {
default
chromium_suid_sandbox_check_kernel_config
}
src_prepare() {
default
# remove post-install script
rm postinst.sh || die "the removal of the unneeded post-install script failed"
# cleanup languages
pushd "locales/" >/dev/null || die "location change for language cleanup failed"
chromium_remove_language_paks
popd >/dev/null || die "location reset for language cleanup failed"
# fix .desktop exec location
sed -i "/Exec/s:/usr/share/discord/Discord:${DESTDIR}/${MY_PN^}:" \
"${MY_PN}.desktop" ||
die "fixing of exec location on .desktop failed"
# USE seccomp
if ! use seccomp; then
sed -i '/Exec/s/Discord/Discord --disable-seccomp-filter-sandbox/' \
"${MY_PN}.desktop" ||
die "sed failed for seccomp"
fi
}
src_install() {
doicon -s 256 "${MY_PN}.png"
# install .desktop file
domenu "${MY_PN}.desktop"
exeinto "${DESTDIR}"
doexe "${MY_PN^}" chrome-sandbox libEGL.so libffmpeg.so libGLESv2.so libvk_swiftshader.so
insinto "${DESTDIR}"
doins chrome_100_percent.pak chrome_200_percent.pak icudtl.dat resources.pak snapshot_blob.bin v8_context_snapshot.bin
insopts -m0755
doins -r locales resources
# Chrome-sandbox requires the setuid bit to be specifically set.
# see https://github.com/electron/electron/issues/17972
fowners root "${DESTDIR}/chrome-sandbox"
fperms 4711 "${DESTDIR}/chrome-sandbox"
# Crashpad is included in the package once in a while and when it does, it must be installed.
# See #903616 and #890595
[[ -x chrome_crashpad_handler ]] && doins chrome_crashpad_handler
dosym "${DESTDIR}/${MY_PN^}" "/usr/bin/${MY_PN}"
# https://bugs.gentoo.org/898912
if use appindicator; then
dosym ../../usr/lib64/libayatana-appindicator3.so /opt/discord/libappindicator3.so
fi
}
pkg_postinst() {
xdg_pkg_postinst
optfeature "sound support" \
media-sound/pulseaudio media-sound/apulse[sdk] media-video/pipewire
}

View File

@ -0,0 +1,134 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MY_PN="${PN/-bin/}"
MY_PV="${PV/-r*/}"
CHROMIUM_LANGS="
af am ar bg bn ca cs da de el en-GB en-US es es-419 et fa fi fil fr gu he hi
hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt-BR pt-PT ro ru sk sl sr sv
sw ta te th tr uk ur vi zh-CN zh-TW
"
inherit chromium-2 desktop linux-info optfeature unpacker xdg
DESCRIPTION="All-in-one voice and text chat for gamers"
HOMEPAGE="https://discordapp.com"
SRC_URI="https://dl.discordapp.net/apps/linux/${MY_PV}/${MY_PN}-${MY_PV}.tar.gz"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="amd64"
RESTRICT="bindist mirror strip test"
IUSE="appindicator +seccomp"
RDEPEND="
>=app-accessibility/at-spi2-core-2.46.0:2
app-crypt/libsecret
dev-libs/expat
dev-libs/glib:2
dev-libs/nspr
dev-libs/nss
media-libs/alsa-lib
media-libs/fontconfig
media-libs/mesa[gbm(+)]
net-print/cups
sys-apps/dbus
sys-apps/util-linux
sys-libs/glibc
x11-libs/cairo
x11-libs/libdrm
x11-libs/gdk-pixbuf:2
x11-libs/gtk+:3
x11-libs/libX11
x11-libs/libXScrnSaver
x11-libs/libXcomposite
x11-libs/libXdamage
x11-libs/libXext
x11-libs/libXfixes
x11-libs/libXrandr
x11-libs/libxcb
x11-libs/libxkbcommon
x11-libs/libxshmfence
x11-libs/pango
appindicator? ( dev-libs/libayatana-appindicator )
"
DESTDIR="/opt/${MY_PN}"
QA_PREBUILT="*"
CONFIG_CHECK="~USER_NS"
S="${WORKDIR}/${MY_PN^}"
src_unpack() {
unpack ${MY_PN}-${MY_PV}.tar.gz
}
src_configure() {
default
chromium_suid_sandbox_check_kernel_config
}
src_prepare() {
default
# remove post-install script
rm postinst.sh || die "the removal of the unneeded post-install script failed"
# cleanup languages
pushd "locales/" >/dev/null || die "location change for language cleanup failed"
chromium_remove_language_paks
popd >/dev/null || die "location reset for language cleanup failed"
# fix .desktop exec location
sed -i "/Exec/s:/usr/share/discord/Discord:${DESTDIR}/${MY_PN^}:" \
"${MY_PN}.desktop" ||
die "fixing of exec location on .desktop failed"
# USE seccomp
if ! use seccomp; then
sed -i '/Exec/s/Discord/Discord --disable-seccomp-filter-sandbox/' \
"${MY_PN}.desktop" ||
die "sed failed for seccomp"
fi
}
src_install() {
doicon -s 256 "${MY_PN}.png"
# install .desktop file
domenu "${MY_PN}.desktop"
exeinto "${DESTDIR}"
doexe "${MY_PN^}" chrome-sandbox libEGL.so libffmpeg.so libGLESv2.so libvk_swiftshader.so
insinto "${DESTDIR}"
doins chrome_100_percent.pak chrome_200_percent.pak icudtl.dat resources.pak snapshot_blob.bin v8_context_snapshot.bin
insopts -m0755
doins -r locales resources
# Chrome-sandbox requires the setuid bit to be specifically set.
# see https://github.com/electron/electron/issues/17972
fowners root "${DESTDIR}/chrome-sandbox"
fperms 4711 "${DESTDIR}/chrome-sandbox"
# Crashpad is included in the package once in a while and when it does, it must be installed.
# See #903616 and #890595
[[ -x chrome_crashpad_handler ]] && doins chrome_crashpad_handler
dosym "${DESTDIR}/${MY_PN^}" "/usr/bin/${MY_PN}"
# https://bugs.gentoo.org/898912
if use appindicator; then
dosym ../../usr/lib64/libayatana-appindicator3.so /opt/discord/libappindicator3.so
fi
}
pkg_postinst() {
xdg_pkg_postinst
optfeature "sound support" \
media-sound/pulseaudio media-sound/apulse[sdk] media-video/pipewire
}