Compare commits

..

3 Commits

Author SHA1 Message Date
947d5e0dc1 Add metadata. 2022-08-04 18:20:32 +08:00
0d31885c51 Add 3.6.0. 2022-08-04 18:20:05 +08:00
11079e0f66 Cleanup and fix SRC_URI so version bumps work. 2022-08-04 18:14:20 +08:00
5 changed files with 75 additions and 28 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/v3.5.2/WebCord-3.5.2-x64.AppImage
_md5_=f3041165d411503a14ce4542f4b8be94

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/v3.6.0/WebCord-3.6.0-x64.AppImage
_md5_=f3041165d411503a14ce4542f4b8be94

View File

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

View File

@ -6,7 +6,7 @@ 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/v3.5.2/WebCord-${PV}-x64.AppImage"
SRC_URI="https://github.com/SpacingBat3/WebCord/releases/download/v${PV}/WebCord-${PV}-x64.AppImage"
LICENSE="MIT"
@ -14,34 +14,9 @@ SLOT="0"
KEYWORDS="~amd64"
# A space delimited list of portage features to restrict. man 5 ebuild
# for details. Usually not needed.
#RESTRICT="strip"
# Run-time dependencies. Must be defined to whatever this depends on to run.
# Example:
# ssl? ( >=dev-libs/openssl-1.0.2q:0= )
# >=dev-lang/perl-5.24.3-r1
# It is advisable to use the >= syntax show above, to reflect what you
# had installed on your system when you tested the package. Then
# other users hopefully won't be caught without the right version of
# a dependency.
#RDEPEND=""
# Build-time dependencies that need to be binary compatible with the system
# being built (CHOST). These include libraries that we link against.
# The below is valid if the same run-time depends are required to compile.
#DEPEND="${RDEPEND}"
# Build-time dependencies that are executed during the emerge process, and
# only need to be present in the native build system (CBUILD). Example:
#BDEPEND=""
src_unpack() {
mkdir ${S} || die
cp ${DISTDIR}/${A} ${S} || die
mkdir "${S}" || die
cp "${DISTDIR}/${A}" $"{S}" || die
}
src_prepare() {

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