games-util/curseforge: new package, add 1.269.2.22204

Signed-off-by: Vincent Ahluwalia <vincentahluwalia@protonmail.com>
This commit is contained in:
Vincent Ahluwalia
2025-01-27 00:06:17 +01:00
parent 3df52ba506
commit bc67202f62
5 changed files with 232 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST curseforge-latest-linux.zip 126277535 BLAKE2B 6b2c42aee8d497edc81017be245f7716d26dd4fad972f0bc77796231ea343198f2e03864094e0c32ca6fb5020cc96c3059bcd6b4090d39a0a3ff0554e67df098 SHA512 261664bb2b2790625fab911fa119cbe5a7e33de5efe3bc0fcf82849a77be98730fb2cc90ac5e47b385ef34ea8c7d08060151938ca5d15186f88ef6f09fcf0be5

View File

@@ -0,0 +1,49 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop
DESCRIPTION="The CurseForge Electron App"
HOMEPAGE="https://www.curseforge.com/"
SRC_URI="https://curseforge.overwolf.com/downloads/curseforge-latest-linux.zip"
S="${WORKDIR}/build"
LICENSE="Overwolf MIT Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="bindist mirror strip test"
RDEPEND="
sys-fs/fuse:0
"
DEPEND=${RDEPEND}
BDEPEND="
app-arch/unzip
"
DESTDIR="/opt/${PN}"
src_install() {
mv ./CurseForge-*.AppImage CurseForge.AppImage
chmod +x CurseForge.AppImage
./CurseForge.AppImage --appimage-extract >/dev/null
sed -i 's/Exec=.*/Exec=\/usr\/bin\/curseforge %U/' squashfs-root/curseforge.desktop
doicon -s 256 squashfs-root/curseforge.png
domenu squashfs-root/curseforge.desktop
exeinto "${DESTDIR}"
doexe CurseForge.AppImage "${FILESDIR}/curseforge"
dosym "${DESTDIR}/curseforge" "/usr/bin/curseforge"
}
pkg_postinst() {
elog "This package is an AppImage that will keep itself up-to-date."
elog "Older versions cannot be saved since only the latest version"
elog "is available upstream. Fuse is required as of Version 1.269.2-22204"
elog "because the AppImage is the only way to start the App. May change in"
elog "the future. CurseForge is not open-source."
}

View File

@@ -0,0 +1,2 @@
#!/bin/sh
exec /opt/curseforge/CurseForge.AppImage "$@"

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>vincentahluwalia@protonmail.com</email>
<name>Vincent Ahluwalia</name>
</maintainer>
</pkgmetadata>