mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 20:43:09 -04:00
games-util/curseforge: new package, add 1.269.2.22204
Signed-off-by: Vincent Ahluwalia <vincentahluwalia@protonmail.com>
This commit is contained in:
1
games-util/curseforge/Manifest
Normal file
1
games-util/curseforge/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST curseforge-latest-linux.zip 126277535 BLAKE2B 6b2c42aee8d497edc81017be245f7716d26dd4fad972f0bc77796231ea343198f2e03864094e0c32ca6fb5020cc96c3059bcd6b4090d39a0a3ff0554e67df098 SHA512 261664bb2b2790625fab911fa119cbe5a7e33de5efe3bc0fcf82849a77be98730fb2cc90ac5e47b385ef34ea8c7d08060151938ca5d15186f88ef6f09fcf0be5
|
||||
49
games-util/curseforge/curseforge-1.269.2.22204.ebuild
Normal file
49
games-util/curseforge/curseforge-1.269.2.22204.ebuild
Normal 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."
|
||||
}
|
||||
2
games-util/curseforge/files/curseforge
Normal file
2
games-util/curseforge/files/curseforge
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec /opt/curseforge/CurseForge.AppImage "$@"
|
||||
8
games-util/curseforge/metadata.xml
Normal file
8
games-util/curseforge/metadata.xml
Normal 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>
|
||||
Reference in New Issue
Block a user