From 0d31885c516dfa490996577016a8621108be9eec Mon Sep 17 00:00:00 2001 From: Sheldon Lee Date: Thu, 4 Aug 2022 18:20:05 +0800 Subject: [PATCH] Add 3.6.0. --- net-im/webcord-bin/Manifest | 1 + net-im/webcord-bin/webcord-bin-3.6.0.ebuild | 53 +++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 net-im/webcord-bin/webcord-bin-3.6.0.ebuild diff --git a/net-im/webcord-bin/Manifest b/net-im/webcord-bin/Manifest index ef1cb6f..ec01c5b 100644 --- a/net-im/webcord-bin/Manifest +++ b/net-im/webcord-bin/Manifest @@ -1 +1,2 @@ DIST WebCord-3.5.2-x64.AppImage 97461440 BLAKE2B deaf70e834bfb7f5476de4a9460f6f95b1159e7a4dffcaa826fadd289efc3c569b526da30cccbacdcd6965b2644954aaaabcf00b9d662e0bae028958a8112353 SHA512 911cd80d993a53d42b42c6e01a2879faff749fefa109971a68cc07017b29e6fe1270283ea2bca7e3378ab4faa75b600f51090ae5a561a6472eb5ac6c618fa0ba +DIST WebCord-3.6.0-x64.AppImage 97469632 BLAKE2B 4a83cbbfff21490e17d35c32d185b960312156d104a764ccf0192a57f299c032024734652550cac56355a30aabc207c10b7ff0375686b0325b5da315554c2e5e SHA512 cf6ee8d974bcc0b2fa9b91e67677d6df1f0062b2a27212e16dd3e2ba33db6f49d05ce53ccad7a716e4a9872bfe670729bbdbe9a650a80c3742d37ab18a36b696 diff --git a/net-im/webcord-bin/webcord-bin-3.6.0.ebuild b/net-im/webcord-bin/webcord-bin-3.6.0.ebuild new file mode 100644 index 0000000..f4f7a2c --- /dev/null +++ b/net-im/webcord-bin/webcord-bin-3.6.0.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="A Discord and Fosscord client implemented directly without Discord API." + +HOMEPAGE="https://github.com/SpacingBat3/WebCord" +SRC_URI="https://github.com/SpacingBat3/WebCord/releases/download/v${PV}/WebCord-${PV}-x64.AppImage" + +LICENSE="MIT" + +SLOT="0" + +KEYWORDS="~amd64" + +src_unpack() { + mkdir "${S}" || die + cp "${DISTDIR}/${A}" $"{S}" || die +} + +src_prepare() { + chmod +x ${A} + ./${A} --appimage-extract || die "Extraction Failed" + + default + + # Edit files to reflect naming. + sed -i -e "s/lib\/webcord/lib\/${PN}/" "squashfs-root/usr/bin/webcord" || die "Sed failed!" + sed -i -e "s/webcord/${PN}/" "squashfs-root/WebCord.desktop" || die "Sed failed!" + sed -i -e "s/\.\/${PN}.png/${PN}/" "squashfs-root/WebCord.desktop" || die "Sed failed!" + + mv "squashfs-root/usr/lib/webcord" "squashfs-root/usr/lib/${PN}" || die + # Move executable out to be installed as executable later. + mv "squashfs-root/usr/lib/${PN}/webcord" ./ || die +} + +src_install() { + exeinto "/usr/bin" + newexe "squashfs-root/usr/bin/webcord" "${PN}" + + insinto "/usr/lib" + doins -r "squashfs-root/usr/lib/${PN}" + + exeinto "/usr/lib/${PN}" + doexe "webcord" + + insinto "/usr/share/applications" + newins "squashfs-root/WebCord.desktop" "${PN}.desktop" + + insinto "/usr/share/pixmaps" + newins "squashfs-root/webcord.png" "${PN}.png" +}