From 80e14ee793c0bfb157728a5134b9a8eca70347e5 Mon Sep 17 00:00:00 2001 From: Sheldon Lee Date: Mon, 30 Jan 2023 14:01:31 +0000 Subject: [PATCH] Add 4.1.1 --- metadata/md5-cache/net-im/webcord-bin-4.1.1 | 9 ++++ net-im/webcord-bin/Manifest | 5 +- net-im/webcord-bin/webcord-bin-4.1.1.ebuild | 53 +++++++++++++++++++++ 3 files changed, 63 insertions(+), 4 deletions(-) create mode 100644 metadata/md5-cache/net-im/webcord-bin-4.1.1 create mode 100644 net-im/webcord-bin/webcord-bin-4.1.1.ebuild diff --git a/metadata/md5-cache/net-im/webcord-bin-4.1.1 b/metadata/md5-cache/net-im/webcord-bin-4.1.1 new file mode 100644 index 0000000..beb30c1 --- /dev/null +++ b/metadata/md5-cache/net-im/webcord-bin-4.1.1 @@ -0,0 +1,9 @@ +DEFINED_PHASES=install prepare unpack +DESCRIPTION=A Discord and Fosscord client implemented directly without Discord API. +EAPI=8 +HOMEPAGE=https://github.com/SpacingBat3/WebCord +KEYWORDS=~amd64 +LICENSE=MIT +SLOT=0 +SRC_URI=https://github.com/SpacingBat3/WebCord/releases/download/v4.1.1/WebCord-4.1.1-x64.AppImage +_md5_=52579231c73f87a29455fe138d3697f1 diff --git a/net-im/webcord-bin/Manifest b/net-im/webcord-bin/Manifest index 1144872..2401399 100644 --- a/net-im/webcord-bin/Manifest +++ b/net-im/webcord-bin/Manifest @@ -1,5 +1,2 @@ -DIST WebCord-3.10.0-x64.AppImage 105772224 BLAKE2B dda087b2a147b004d02a9e2816a347b6a4ecf3cae3f4bedba7bf78f570d89b03361c761bc80701b4f6c4d9dd28d9ad6d4e5b4e102881d81e49d0bc1bae467bda SHA512 cec38e6a18c7068144b9e173bc2a1e1f574fd56a6eeafb7c9bbad88f6f0f85613037deecf8c353a1fe83a8dbd99c5f75f03852a1fa1e95385b8f8cfa167fed4b -DIST WebCord-3.8.3-x64.AppImage 103695552 BLAKE2B 90fc5a7dd9eb0e159fddfa01b6cdc50df7a481eefc99bc83950a0a425ae94d46c5024f8d16e9799e19029997862326f619e5d209efac0b54792afc4fd3269165 SHA512 b7517ac295a678e7668fb6acad0aab28ba4e144b73e5e5005202f68c8087158be0db6b0ae2d8fde4c8568d2768c090c3f174a4709fe461a5d83ff1af110c4528 -DIST WebCord-3.8.6-x64.AppImage 105657536 BLAKE2B 593d8f5e43f2da2ea2ca4fedfaf462a707a09b375eeb9ca2fc465955f7372510e7a6de2536dfeec8b5945d3f2e5645846aac351cfe60bf5d26d9c02fe338ef7b SHA512 3329d94429714e30d0cc44a307eca2788e96600d4f1a991996200e0f62395f409c211f214cc4a5d03f123f479360332233a0f2c0d22cd50461c0cc0dcf050bbc -DIST WebCord-3.8.8-x64.AppImage 105759936 BLAKE2B 57b3537ebfaa2bb1212e73a2ce9e6716f0dd1fe51e69bffa2fa4b8591afab3cabbba95c5513e30e224bb308d22730cbf251b103b8a82bf2a808fecdccbe20a47 SHA512 b758e971c9f7fef944e4e0045ee33e957f8dbefa02e8a1013a3e4df997c3a5abdacee8a74f7a82f181b4dd04b07b43218288d4845046ea2c7666ccd32ed3f278 DIST WebCord-3.9.2-x64.AppImage 105768128 BLAKE2B d99405e5fe17bea57c501d61b06534d77a7ee874b8ab9addafa8d101686f2d197c9150ad57ebe60877a65a616b75fecd5f5305f679a4762253d58bbc16698a09 SHA512 a823af06fdbb0f16aa19ad5c6c09a438eda5c9e2533fd578c0130b6eb5892b9a654548b88de9b54fe0c32cee3adf2468f8e400f1b2bee838f34d7828eba636e5 +DIST WebCord-4.1.1-x64.AppImage 108520640 BLAKE2B 477e611ea90d5939b17b372fd04c368d86e5e0647f532c4a2714f7f0a4cbb6b0c481dbc95bc4553e0eb061072567b3a02e6ab59ffa4cc2c2d0c62bc09d73dcb1 SHA512 b3e3dfad04922008ada67b679dea825763bc4a957da20719bd5d326b29fd89840ea39f64ee90ab6e5e2cbd5792bc546cd72cba687dba6361ab9ab15518c7ed17 diff --git a/net-im/webcord-bin/webcord-bin-4.1.1.ebuild b/net-im/webcord-bin/webcord-bin-4.1.1.ebuild new file mode 100644 index 0000000..d5587b8 --- /dev/null +++ b/net-im/webcord-bin/webcord-bin-4.1.1.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" +}