summaryrefslogtreecommitdiff
path: root/net-im
diff options
context:
space:
mode:
authorStefan Strogin <steils@gentoo.org>2022-06-08 21:11:05 +0300
committerStefan Strogin <steils@gentoo.org>2022-06-08 21:11:05 +0300
commit6895cb60373e715572b3613218dc56cdf306a846 (patch)
tree3e270ac2a73c7c115a216db77bbff09e8f76b3ee /net-im
parentsys-power/upower: Version bump to 0.99.19 (diff)
downloadgentoo-6895cb60373e715572b3613218dc56cdf306a846.tar.gz
gentoo-6895cb60373e715572b3613218dc56cdf306a846.tar.bz2
gentoo-6895cb60373e715572b3613218dc56cdf306a846.zip
net-im/discord-bin: upgrade to 0.0.18
Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Stefan Strogin <steils@gentoo.org>
Diffstat (limited to 'net-im')
-rw-r--r--net-im/discord-bin/Manifest1
-rw-r--r--net-im/discord-bin/discord-bin-0.0.18.ebuild131
2 files changed, 132 insertions, 0 deletions
diff --git a/net-im/discord-bin/Manifest b/net-im/discord-bin/Manifest
index 83e85a4eaf0f..8cbd26989186 100644
--- a/net-im/discord-bin/Manifest
+++ b/net-im/discord-bin/Manifest
@@ -1,2 +1,3 @@
DIST discord-0.0.17.deb 77105376 BLAKE2B b11d9d6798beb3dbb36892c9c948535fee453c258a91f48b04a686813fb82dc43f7872fcb4e68d17e6fb366a84825aa0e7b4f1ad45ab4efec403a05fb88c4f2a SHA512 b51d8e019b9c8c365aedbc7c77e53febec95d0c0f1b773e008d4d72e3880303b6f2d3381f363eedc8e08492ee2d2e8ef6d65353e852a8db9d708a70caabbb3cb
DIST discord-0.0.17.tar.gz 77399242 BLAKE2B 0ed763947afd6478becff7c4f81fd805a681b77c48c52a958cc922242ab115b29f05cd2760dcb46d306aa5c1b39ac8ccb54d81e9c1d3b873cd01987d1a02ee2f SHA512 728c760f04770b197635d1fc1a2833c707ab462708cc0bf6fb165691c1375e14e3192f3806d3719325790459b39bd3425f5942d69a53019695f02c965214a5c9
+DIST discord-0.0.18.tar.gz 77398558 BLAKE2B e25ad448dd9f89e460a4380cde850506298a443be2b70fb243b92ab6a139815fea36260b879ece044c5c607561fde6adf36a188c186c48c34052ec105b23d732 SHA512 a9c5de48186542fa4385c5cf4ffb54484dee008cde5230a9f8a0e71a84e1e7ce680e170aca2018ad2217618ed2d4a4882836a408a5d0a5cab054c0954c1b55be
diff --git a/net-im/discord-bin/discord-bin-0.0.18.ebuild b/net-im/discord-bin/discord-bin-0.0.18.ebuild
new file mode 100644
index 000000000000..e40d2077e427
--- /dev/null
+++ b/net-im/discord-bin/discord-bin-0.0.18.ebuild
@@ -0,0 +1,131 @@
+# Copyright 1999-2022 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="
+ 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 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"
+
+# libXScrnSaver is used through dlopen (bug #825370)
+RDEPEND="
+ app-accessibility/at-spi2-atk:2
+ app-accessibility/at-spi2-core:2
+ dev-libs/atk
+ dev-libs/expat
+ dev-libs/glib:2
+ dev-libs/nspr
+ dev-libs/nss
+ media-libs/alsa-lib
+ media-libs/mesa[gbm(+)]
+ net-print/cups
+ sys-apps/dbus
+ sys-libs/glibc
+ x11-libs/cairo
+ 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/libdrm
+ x11-libs/libxcb
+ x11-libs/libxkbcommon
+ x11-libs/libxshmfence
+ x11-libs/pango
+"
+
+RESTRICT="bindist mirror strip test"
+
+DESTDIR="/opt/${MY_PN}"
+
+QA_PREBUILT="
+ ${DESTDIR#/}/${MY_PN^}
+ ${DESTDIR#/}/chrome-sandbox
+ ${DESTDIR#/}/libffmpeg.so
+ ${DESTDIR#/}/libvk_swiftshader.so
+ ${DESTDIR#/}/libvulkan.so
+ ${DESTDIR#/}/libEGL.so
+ ${DESTDIR#/}/libGLESv2.so
+ ${DESTDIR#/}/libVkICD_mock_icd.so
+ ${DESTDIR#/}/swiftshader/libEGL.so
+ ${DESTDIR#/}/swiftshader/libGLESv2.so
+ ${DESTDIR#/}/swiftshader/libvk_swiftshader.so
+"
+
+CONFIG_CHECK="~USER_NS"
+
+S="${WORKDIR}/${MY_PN^}"
+
+pkg_pretend() {
+ chromium_suid_sandbox_check_kernel_config
+}
+
+src_unpack() {
+ unpack ${MY_PN}-${MY_PV}.tar.gz
+}
+
+src_configure() {
+ chromium_suid_sandbox_check_kernel_config
+
+ default
+}
+
+src_prepare() {
+ default
+ # remove post-install script
+ rm postinst.sh || die "the removal of the unneeded post-install script failed"
+ # cleanup languages
+ pushd "locales/" || die "location change for language cleanup failed"
+ chromium_remove_language_paks
+ popd || die "location reset for language cleanup failed"
+ # fix .desktop exec location
+ sed -i -e "s:/usr/share/discord/Discord:${DESTDIR}/${MY_PN^}:" ${MY_PN}.desktop || die "fixing of exec location on .desktop failed"
+}
+
+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 swiftshader
+
+ # Chrome-sandbox requires the setuid bit to be specifically set.
+ # see https://github.com/electron/electron/issues/17972
+ fperms 4755 "${DESTDIR}"/chrome-sandbox
+
+ dosym "${DESTDIR}"/${MY_PN^} /usr/bin/${MY_PN}
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+
+ optfeature "sound support" \
+ media-sound/pulseaudio media-sound/apulse[sdk] media-video/pipewire
+ optfeature "system tray support" dev-libs/libappindicator
+}