1
0
flewkey-overlay/net-im/lightcord-bin/lightcord-bin-0.1.4.ebuild
Ryan Fox 4519f864c0
Add Lightcord
You can thank AlwaysLivid for this one, he bribed me with diamonds in
Minecraft. :-)
2020-08-27 04:25:16 +00:00

58 lines
1.3 KiB
Bash

# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit desktop xdg-utils
SRC_URI="
https://lightcord.deroku.xyz/api/v1/gh/releases/Lightcord/Lightcord/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/crashpad_handler
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"
}
pkg_postinst() {
xdg_mimeinfo_database_update
xdg_desktop_database_update
xdg_icon_cache_update
}
pkg_postrm() {
xdg_mimeinfo_database_update
xdg_desktop_database_update
xdg_icon_cache_update
}