|
| 1 | +# Copyright 1999-2025 Gentoo Authors |
| 2 | +# Distributed under the terms of the GNU General Public License v2 |
| 3 | + |
| 4 | +EAPI=8 |
| 5 | + |
| 6 | +MY_PN="vesktop" |
| 7 | + |
| 8 | +CHROMIUM_LANGS=" |
| 9 | + 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 |
| 10 | + 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 |
| 11 | + sw ta te th tr uk ur vi zh-CN zh-TW |
| 12 | +" |
| 13 | + |
| 14 | +inherit chromium-2 desktop linux-info optfeature unpacker xdg |
| 15 | + |
| 16 | +DESCRIPTION="All-in-one voice and text chat for gamers with Vencord Preinstalled" |
| 17 | +HOMEPAGE="https://github.com/Vencord/Vesktop/" |
| 18 | +SRC_URI=" |
| 19 | + amd64? ( https://github.com/Vencord/Vesktop/releases/download/v${PV}/${MY_PN}-${PV}.tar.gz ) |
| 20 | + arm64? ( https://github.com/Vencord/Vesktop/releases/download/v${PV}/${MY_PN}-${PV}-arm64.tar.gz ) |
| 21 | +" |
| 22 | +S="${WORKDIR}/${MY_PN}-${PV}" |
| 23 | + |
| 24 | +LICENSE="GPL-3+" |
| 25 | +SLOT="0" |
| 26 | +KEYWORDS="~amd64 ~arm64" |
| 27 | +RESTRICT="bindist mirror strip test" |
| 28 | + |
| 29 | +DEPEND=" |
| 30 | + app-accessibility/at-spi2-core |
| 31 | + dev-libs/expat |
| 32 | + dev-libs/glib |
| 33 | + dev-libs/nspr |
| 34 | + dev-libs/nss |
| 35 | + media-libs/alsa-lib |
| 36 | + media-libs/fontconfig |
| 37 | + media-libs/mesa[gbm(+)] |
| 38 | + net-print/cups |
| 39 | + sys-apps/dbus |
| 40 | + sys-libs/glibc |
| 41 | + x11-libs/cairo |
| 42 | + x11-libs/libdrm |
| 43 | + x11-libs/gdk-pixbuf:2 |
| 44 | + x11-libs/gtk+:3 |
| 45 | + x11-libs/libXcomposite |
| 46 | + x11-libs/libXdamage |
| 47 | + x11-libs/libXext |
| 48 | + x11-libs/libXfixes |
| 49 | + x11-libs/libXrandr |
| 50 | + x11-libs/libdrm |
| 51 | + x11-libs/libxcb |
| 52 | + x11-libs/libxkbcommon |
| 53 | + x11-libs/pango |
| 54 | + x11-misc/xdg-utils |
| 55 | +" |
| 56 | + |
| 57 | +DESTDIR="/opt/${PN}" |
| 58 | + |
| 59 | +QA_PREBUILT="*" |
| 60 | + |
| 61 | +CONFIG_CHECK="~USER_NS" |
| 62 | + |
| 63 | +src_unpack() { |
| 64 | + default |
| 65 | + use arm64 && S="${WORKDIR}/${MY_PN}-${PV}-arm64" |
| 66 | +} |
| 67 | + |
| 68 | +src_configure() { |
| 69 | + default |
| 70 | + chromium_suid_sandbox_check_kernel_config |
| 71 | +} |
| 72 | + |
| 73 | +src_install() { |
| 74 | + |
| 75 | + doicon -s 256 "${FILESDIR}/vesktop-bin.png" |
| 76 | + domenu "${FILESDIR}/vesktop-bin.desktop" |
| 77 | + |
| 78 | + exeinto "${DESTDIR}" |
| 79 | + |
| 80 | + doexe vesktop chrome-sandbox libEGL.so libffmpeg.so libGLESv2.so libvk_swiftshader.so libvulkan.so.1 |
| 81 | + |
| 82 | + insinto "${DESTDIR}" |
| 83 | + doins chrome_100_percent.pak chrome_200_percent.pak icudtl.dat resources.pak snapshot_blob.bin v8_context_snapshot.bin |
| 84 | + insopts -m0755 |
| 85 | + doins -r locales resources |
| 86 | + |
| 87 | + fowners root "${DESTDIR}/chrome-sandbox" |
| 88 | + fperms 4711 "${DESTDIR}/chrome-sandbox" |
| 89 | + |
| 90 | + [[ -x chrome_crashpad_handler ]] && doins chrome_crashpad_handler |
| 91 | + |
| 92 | + dosym "${DESTDIR}/vesktop" "/usr/bin/vesktop-bin" |
| 93 | + |
| 94 | +} |
| 95 | + |
| 96 | +pkg_postinst() { |
| 97 | + optfeature "Desktop notifications support" x11-libs/libnotify |
| 98 | +} |
0 commit comments