Bump to version 4.7.0

This commit is contained in:
Sheldon Lee 2024-02-02 23:02:01 +08:00
parent fc5e30f014
commit b01068f4c3
3 changed files with 63 additions and 0 deletions

View File

@ -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.7.0/WebCord-4.7.0-x64.AppImage
_md5_=52579231c73f87a29455fe138d3697f1

View File

@ -1,2 +1,3 @@
DIST WebCord-3.9.2-x64.AppImage 105768128 BLAKE2B d99405e5fe17bea57c501d61b06534d77a7ee874b8ab9addafa8d101686f2d197c9150ad57ebe60877a65a616b75fecd5f5305f679a4762253d58bbc16698a09 SHA512 a823af06fdbb0f16aa19ad5c6c09a438eda5c9e2533fd578c0130b6eb5892b9a654548b88de9b54fe0c32cee3adf2468f8e400f1b2bee838f34d7828eba636e5 DIST WebCord-3.9.2-x64.AppImage 105768128 BLAKE2B d99405e5fe17bea57c501d61b06534d77a7ee874b8ab9addafa8d101686f2d197c9150ad57ebe60877a65a616b75fecd5f5305f679a4762253d58bbc16698a09 SHA512 a823af06fdbb0f16aa19ad5c6c09a438eda5c9e2533fd578c0130b6eb5892b9a654548b88de9b54fe0c32cee3adf2468f8e400f1b2bee838f34d7828eba636e5
DIST WebCord-4.1.1-x64.AppImage 108520640 BLAKE2B 477e611ea90d5939b17b372fd04c368d86e5e0647f532c4a2714f7f0a4cbb6b0c481dbc95bc4553e0eb061072567b3a02e6ab59ffa4cc2c2d0c62bc09d73dcb1 SHA512 b3e3dfad04922008ada67b679dea825763bc4a957da20719bd5d326b29fd89840ea39f64ee90ab6e5e2cbd5792bc546cd72cba687dba6361ab9ab15518c7ed17 DIST WebCord-4.1.1-x64.AppImage 108520640 BLAKE2B 477e611ea90d5939b17b372fd04c368d86e5e0647f532c4a2714f7f0a4cbb6b0c481dbc95bc4553e0eb061072567b3a02e6ab59ffa4cc2c2d0c62bc09d73dcb1 SHA512 b3e3dfad04922008ada67b679dea825763bc4a957da20719bd5d326b29fd89840ea39f64ee90ab6e5e2cbd5792bc546cd72cba687dba6361ab9ab15518c7ed17
DIST WebCord-4.7.0-x64.AppImage 106983744 BLAKE2B e7f28f1afe70b805c3e12acdcaab41ee314a5242273969cfd5d0c29acd697d5e728285b42c0e6e275148d78b6f40374d564b045bb2b4d8d366373e3e1aa43ae0 SHA512 0cb89999e19a4b48fad0a5bcca0d8f188e91e9190c766e94e7e8c3bb3da1194ecee73d75f07ad1648e60d737180608c08bcc45cbef7e2679b8bbfb73b690b80e

View File

@ -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"
}