Add 3.6.0.

This commit is contained in:
Sheldon Lee 2022-08-04 18:20:05 +08:00
parent 11079e0f66
commit 0d31885c51
2 changed files with 54 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST WebCord-3.5.2-x64.AppImage 97461440 BLAKE2B deaf70e834bfb7f5476de4a9460f6f95b1159e7a4dffcaa826fadd289efc3c569b526da30cccbacdcd6965b2644954aaaabcf00b9d662e0bae028958a8112353 SHA512 911cd80d993a53d42b42c6e01a2879faff749fefa109971a68cc07017b29e6fe1270283ea2bca7e3378ab4faa75b600f51090ae5a561a6472eb5ac6c618fa0ba DIST WebCord-3.5.2-x64.AppImage 97461440 BLAKE2B deaf70e834bfb7f5476de4a9460f6f95b1159e7a4dffcaa826fadd289efc3c569b526da30cccbacdcd6965b2644954aaaabcf00b9d662e0bae028958a8112353 SHA512 911cd80d993a53d42b42c6e01a2879faff749fefa109971a68cc07017b29e6fe1270283ea2bca7e3378ab4faa75b600f51090ae5a561a6472eb5ac6c618fa0ba
DIST WebCord-3.6.0-x64.AppImage 97469632 BLAKE2B 4a83cbbfff21490e17d35c32d185b960312156d104a764ccf0192a57f299c032024734652550cac56355a30aabc207c10b7ff0375686b0325b5da315554c2e5e SHA512 cf6ee8d974bcc0b2fa9b91e67677d6df1f0062b2a27212e16dd3e2ba33db6f49d05ce53ccad7a716e4a9872bfe670729bbdbe9a650a80c3742d37ab18a36b696

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