1
0
flewkey-overlay/net-im/lightcord-bin/lightcord-bin-0.1.9.ebuild

42 lines
1.0 KiB
Bash
Raw Normal View History

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit desktop xdg
SRC_URI="
https://github.com/Lightcord/Lightcord/releases/download/v${PV}/lightcord-linux-x64.zip -> ${P}.zip
https://raw.githubusercontent.com/Lightcord/LightcordLogos/master/lightcord/lightcord.png
"
KEYWORDS="~amd64"
DESCRIPTION="A fancy, customizable Discord client"
HOMEPAGE="https://lightcord.deroku.xyz/"
LICENSE="MIT"
SLOT="0"
DEPEND="app-arch/unzip"
RDEPEND="${DEPEND}"
S="${WORKDIR}"
QA_PREBUILT="
opt/lightcord/lightcord
opt/lightcord/libEGL.so
opt/lightcord/libffmpeg.so
opt/lightcord/libGLESv2.so
opt/lightcord/libvk_swiftshader.so
opt/lightcord/swiftshader/libEGL.so
opt/lightcord/swiftshader/libGLESv2.so
"
src_install() {
doicon "${DISTDIR}/lightcord.png"
domenu "${FILESDIR}/Lightcord.desktop"
dodir "/opt/lightcord/"
cp -r "${S}/"* "${D}/opt/lightcord/" || die "Failed to install"
fperms +x "/opt/lightcord/lightcord"
dosym "../../opt/lightcord/lightcord" "/usr/bin/lightcord"
}