EAPI=8 inherit desktop DESCRIPTION="Vesktop is a alterntive discord client with extra features." HOMEPAGE="https://github.com/Vencord/Vesktop" # SRC_URI="https://github.com/Vencord/Vesktop/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" SRC_URI="https://github.com/Vencord/Vesktop/archive/refs/tags/v${PV}.tar.gz" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64" RESTRICT=network-sandbox IUSE="+libvesktop" BDEPEND="net-libs/nodejs[npm] sys-apps/pnpm-bin " S="${WORKDIR}/Vesktop-${PV}" src_compile() { pnpm i || die "failed to install dependencies" if use libvesktop; then pnpm buildLibVesktop || die "failed to compile libvesktop" fi pnpm package:dir || die "failed to package" } src_install() { insinto /opt/vesktop doins -r dist/linux-unpacked newicon build/icon.svg vesktop.png # newicon static/tray.png vesktop.png fperms +x /opt/vesktop/linux-unpacked/vesktop make_desktop_entry /opt/vesktop/linux-unpacked/vesktop Vesktop dosym /opt/vesktop/linux-unpacked/vesktop /usr/bin/vesktop }