Discord update
This commit is contained in:
parent
73663ebfdb
commit
16aaeb7b5e
@ -1,9 +1,3 @@
|
|||||||
DIST discord-0.0.31.tar.gz 92637981 BLAKE2B c1cb061dc45d34a05e443c1f6c4b352806bfebf0c5f0aa3a61d4abe57ad24bb54edc6fcd895ef49b15f376041814665fb7b2989cabcb64b950ecffba328f31bd SHA512 596f0e2271e61798594d97a85728eea2bfa851db7f1e8b7fa65e1631dfeb347fa8d6087556854c0e775b88678a03b8ece97d0c1293b156e7ea908f6570645248
|
DIST discord-0.0.35.tar.gz 92973520 BLAKE2B ed0c72d39e2da6afb640926e5b96b6a6a689d7f82908898c7622aa9ba74dfbec16746178f17b294017d40a0ede376cd86580fd37b64c6be42c423c43b61dbf02 SHA512 a0f1db24e38a2d48ea8521a7e8e638a401bdfc407b64e21c7a0dde241eb10e4988fcdc916ed13d45012ae4ce25b3c53d36bf97b011cf569cb81e9f1b7c2d6eeb
|
||||||
DIST discord-0.0.32.tar.gz 92662078 BLAKE2B 03b2bb5657a32b6374de826643c8c37b76b5146bf2a8012a9e492254f00ca17f3e1b44dd5f70265856bce84e167d7163c68faf2648d52930c573e5936a442b81 SHA512 e3ca9075e4a66c7c4358bdccb748f8f849de24cf3036b85d2c42dd15f8e56125fc42e86e73920751126b0e4fa73596a1d7af1f21ac9903911d6c843637c46813
|
EBUILD discord-0.0.35.ebuild 3391 BLAKE2B c8ee5719efdeb4f940ef16a8e07cc828df3d66f9f339ac1b134713083e784c4e3c08b1373bc9d33ad591ef936d89c48edd3a05aefd23af3468911f8d930a8e8a SHA512 103ba174ce8f7b566d767dff33f3a5c3514335e67f4c5b1e08ab4bcd7fcc8a970318a396346734bce965d9d1187b88fe41fa263f07d99189324244646e0144f7
|
||||||
DIST discord-0.0.33.tar.gz 92880138 BLAKE2B 86b410ce6b030c09f859d60c5508230b03131b9a2e0eec58234e6c02c99a40be765e886fd2cf9586fca85552a452f4c6213926ebbf2137a7407df95edf9dabce SHA512 83e848d12137a2576f70834fcf612cdd0a0f3216916d450830813b7492efa53f7baaeefd37cd58091a0ed8303e3b037f32e995b51a35c416388c1a6d6998036f
|
|
||||||
DIST discord-0.0.34.tar.gz 92968432 BLAKE2B 0db1f1459169a7de36733dddf2a945b136fa854d73abbd72648fc3c46c0ec82ae81f944a228bf4d4d876cbed4924fc34d5eb81af989309d76adc8148883a9b1c SHA512 28ab59e18ca3c800030c7c4b4f016efed033e741ad42f18b993e8493d51a78d430a4ff3c0a3457fdf8b43907a013f3145e67748e7a896d440af56074226c5c46
|
|
||||||
EBUILD discord-0.0.31.ebuild 3413 BLAKE2B 80cd994612cfb1da73c9f6eefb9ba254eca549da180e704e7477946b0aa05b7f7daa1aff60501712c0c830ca5fa335e0f1d567d1a16b0bef4ca930dc7f9ad3d4 SHA512 ae44d8dd768191a3097b0e5882b85b6a4e72868cbb648bfdd911d5c5e1b56974e752dcc4a322948e55b246c3b94a48b26e185535b203b8f758accd11fb4f56c5
|
|
||||||
EBUILD discord-0.0.32.ebuild 3413 BLAKE2B 80cd994612cfb1da73c9f6eefb9ba254eca549da180e704e7477946b0aa05b7f7daa1aff60501712c0c830ca5fa335e0f1d567d1a16b0bef4ca930dc7f9ad3d4 SHA512 ae44d8dd768191a3097b0e5882b85b6a4e72868cbb648bfdd911d5c5e1b56974e752dcc4a322948e55b246c3b94a48b26e185535b203b8f758accd11fb4f56c5
|
|
||||||
EBUILD discord-0.0.33.ebuild 3413 BLAKE2B 80cd994612cfb1da73c9f6eefb9ba254eca549da180e704e7477946b0aa05b7f7daa1aff60501712c0c830ca5fa335e0f1d567d1a16b0bef4ca930dc7f9ad3d4 SHA512 ae44d8dd768191a3097b0e5882b85b6a4e72868cbb648bfdd911d5c5e1b56974e752dcc4a322948e55b246c3b94a48b26e185535b203b8f758accd11fb4f56c5
|
|
||||||
EBUILD discord-0.0.34.ebuild 3413 BLAKE2B 80cd994612cfb1da73c9f6eefb9ba254eca549da180e704e7477946b0aa05b7f7daa1aff60501712c0c830ca5fa335e0f1d567d1a16b0bef4ca930dc7f9ad3d4 SHA512 ae44d8dd768191a3097b0e5882b85b6a4e72868cbb648bfdd911d5c5e1b56974e752dcc4a322948e55b246c3b94a48b26e185535b203b8f758accd11fb4f56c5
|
|
||||||
MISC metadata.xml 506 BLAKE2B ff098a1c9341a94ebb21da57c3028d3d96e884e19e3adf2df8d50b694a1ca3eee61f5dfd90eaa557a0a0eee769fd11dfa7bbf63308386a11faa56d13687e33c3 SHA512 56baf0a5323057b4af83a7b7d760b2b1e071e15ca4eef6546eab4104fbdd026906f68d8023a3155f492d8d93cd7022c5d0017372cbaf2894b94bd253b2ce3665
|
MISC metadata.xml 506 BLAKE2B ff098a1c9341a94ebb21da57c3028d3d96e884e19e3adf2df8d50b694a1ca3eee61f5dfd90eaa557a0a0eee769fd11dfa7bbf63308386a11faa56d13687e33c3 SHA512 56baf0a5323057b4af83a7b7d760b2b1e071e15ca4eef6546eab4104fbdd026906f68d8023a3155f492d8d93cd7022c5d0017372cbaf2894b94bd253b2ce3665
|
||||||
|
@ -1,134 +0,0 @@
|
|||||||
# 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_VERSION="102"
|
|
||||||
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
|
|
||||||
}
|
|
@ -1,134 +0,0 @@
|
|||||||
# 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_VERSION="102"
|
|
||||||
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
|
|
||||||
}
|
|
@ -1,134 +0,0 @@
|
|||||||
# 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_VERSION="102"
|
|
||||||
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
|
|
||||||
}
|
|
@ -6,7 +6,6 @@ EAPI=8
|
|||||||
MY_PN="${PN/-bin/}"
|
MY_PN="${PN/-bin/}"
|
||||||
MY_PV="${PV/-r*/}"
|
MY_PV="${PV/-r*/}"
|
||||||
|
|
||||||
CHROMIUM_VERSION="102"
|
|
||||||
CHROMIUM_LANGS="
|
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
|
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
|
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
|
||||||
@ -132,3 +131,4 @@ pkg_postinst() {
|
|||||||
optfeature "sound support" \
|
optfeature "sound support" \
|
||||||
media-sound/pulseaudio media-sound/apulse[sdk] media-video/pipewire
|
media-sound/pulseaudio media-sound/apulse[sdk] media-video/pipewire
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user