diff --git a/metadata/md5-cache/net-im/webcord-bin-3.8.3 b/metadata/md5-cache/net-im/webcord-bin-3.8.3 new file mode 100644 index 0000000..8815546 --- /dev/null +++ b/metadata/md5-cache/net-im/webcord-bin-3.8.3 @@ -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/v3.8.3/WebCord-3.8.3-x64.AppImage +_md5_=52579231c73f87a29455fe138d3697f1 diff --git a/net-im/webcord-bin/Manifest b/net-im/webcord-bin/Manifest index 95db8f0..e2cf533 100644 --- a/net-im/webcord-bin/Manifest +++ b/net-im/webcord-bin/Manifest @@ -1,3 +1,4 @@ DIST WebCord-3.5.2-x64.AppImage 97461440 BLAKE2B deaf70e834bfb7f5476de4a9460f6f95b1159e7a4dffcaa826fadd289efc3c569b526da30cccbacdcd6965b2644954aaaabcf00b9d662e0bae028958a8112353 SHA512 911cd80d993a53d42b42c6e01a2879faff749fefa109971a68cc07017b29e6fe1270283ea2bca7e3378ab4faa75b600f51090ae5a561a6472eb5ac6c618fa0ba DIST WebCord-3.6.0-x64.AppImage 97469632 BLAKE2B 4a83cbbfff21490e17d35c32d185b960312156d104a764ccf0192a57f299c032024734652550cac56355a30aabc207c10b7ff0375686b0325b5da315554c2e5e SHA512 cf6ee8d974bcc0b2fa9b91e67677d6df1f0062b2a27212e16dd3e2ba33db6f49d05ce53ccad7a716e4a9872bfe670729bbdbe9a650a80c3742d37ab18a36b696 DIST WebCord-3.7.1-x64.AppImage 103670976 BLAKE2B dd8f29cd80f37f38e8087a1c798758916ef4fbba2997513a1244860d22da574bfcafe5d8d9a6ebe9aa8bba6df72dc2e022dc0d60492778e45c9d020b04496600 SHA512 689147cf391408323464e7ade99aebec3e22961f80d2e78703dcf421e9cef78d9179498d6b0e0939a494715b7ab71b064265da0979f90f5c0a2cd0adf165c896 +DIST WebCord-3.8.3-x64.AppImage 103695552 BLAKE2B 90fc5a7dd9eb0e159fddfa01b6cdc50df7a481eefc99bc83950a0a425ae94d46c5024f8d16e9799e19029997862326f619e5d209efac0b54792afc4fd3269165 SHA512 b7517ac295a678e7668fb6acad0aab28ba4e144b73e5e5005202f68c8087158be0db6b0ae2d8fde4c8568d2768c090c3f174a4709fe461a5d83ff1af110c4528 diff --git a/net-im/webcord-bin/webcord-bin-3.8.3.ebuild b/net-im/webcord-bin/webcord-bin-3.8.3.ebuild new file mode 100644 index 0000000..d5587b8 --- /dev/null +++ b/net-im/webcord-bin/webcord-bin-3.8.3.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" +}