games-misc/an-anime-game-launcher-bin: treeclean

Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>
This commit is contained in:
Pascal Jäger
2022-05-10 21:37:11 +02:00
parent 2d8c301a94
commit c59009e3f1
4 changed files with 0 additions and 120 deletions

View File

@@ -1 +0,0 @@
DIST An_Anime_Game_Launcher.AppImage 4383936 BLAKE2B 978be58595b90be13407275527651a2e9154978337e3b618796247fc402643165222b2e5a0d937ab231c15a943ae6e36469a176ca4d6a43dd4995bb98a2b3fb2 SHA512 63be6095af44f760da982a087a8105cba9f792ffc1af3e363e689ec27038507f92e4bc56a7ec2be92b446dbc3cc8164ceb6183e0b104bee555c7570143532304

View File

@@ -1,76 +0,0 @@
# copyright 1999-2022 gentoo authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit optfeature xdg-utils
DESCRIPTION="Open Source An Anime Game launcher for Linux with automatic anti-cheat patching and telemetry disabling, binary package"
HOMEPAGE="https://gitlab.com/an-anime-team/an-anime-game-launcher"
SRC_URI="https://gitlab.com/an-anime-team/an-anime-game-launcher/uploads/003620e21b2d8d70385bac8f2a862846/An_Anime_Game_Launcher.AppImage"
LICENSE="GPL-3 0BSD Apache-2.0 BSD-2 BSD ISC MIT Unlicense all-rights-reserved"
SLOT="0"
KEYWORDS="-* ~amd64"
RDEPEND="
app-arch/cabextract
app-arch/tar
app-arch/unzip
|| (
app-emulation/dxvk-bin
app-emulation/winetricks
)
dev-libs/libdbusmenu
dev-util/xdelta[lzma]
dev-vcs/git
net-libs/webkit-gtk
net-misc/curl
sys-auth/polkit
virtual/wine
x11-libs/libnotify
"
BDEPEND="app-admin/chrpath"
PATCHES=(
"${FILESDIR}/${PN}-launcher.patch"
"${FILESDIR}/${PN}-desktop.patch"
)
RESTRICT="bindist mirror"
src_unpack() {
mkdir "${WORKDIR}/${P}" || die
cp "${DISTDIR}/An_Anime_Game_Launcher.AppImage" "${WORKDIR}/${P}" || die
}
src_prepare(){
chmod +x An_Anime_Game_Launcher.AppImage || die
./An_Anime_Game_Launcher.AppImage --appimage-extract || die "Extraction Failed"
chrpath -d "squashfs-root/public/discord-rpc/discord-rpc" || die "Patching Library Failed"
default
mv "squashfs-root/public/icons/256x256.png" "${PN}.png" || die
mv "squashfs-root/AppRun" "${PN}" || die
mv "squashfs-root/an-anime-game-launcher.desktop" "${PN}.desktop" || die
}
src_install(){
insinto "/usr/lib/${PN}"
doins "squashfs-root/resources.neu"
exeinto "/usr/lib/${PN}"
doexe "squashfs-root/an-anime-game-launcher"
doins -r "squashfs-root/public"
insinto "/usr/share/pixmaps"
doins "${PN}.png"
exeinto "/usr/bin"
doexe "${PN}"
insinto "/usr/share/applications/"
doins "${PN}.desktop"
}
pkg_postinst() {
xdg_desktop_database_update
optfeature "appindicator support" dev-libs/libayatana-appindicator
}
pkg_postrm() {
xdg_desktop_database_update
}

View File

@@ -1,17 +0,0 @@
--- a/squashfs-root/an-anime-game-launcher.desktop
+++ b/squashfs-root/an-anime-game-launcher.desktop
3,6c3,4
< Icon=64x64
< Exec=AppRun
< Type=Application
< Categories=Game;
---
> Comment=An Launcher for a specific anime game with auto-patching, discord rpc and time tracking
> Exec=an-anime-game-launcher-bin
8c6,8
< X-AppImage-Version=2.3.2
---
> Type=Application
> Icon=an-anime-game-launcher-bin
> Categories=Game

View File

@@ -1,26 +0,0 @@
--- a/squashfs-root/AppRun
+++ b/squashfs-root/AppRun
4,10c4
< if [ -z "$APPDIR" ] ; then
< path="$(dirname "$(readlink -f "${THIS}")")"
< while [[ "$path" != "" && ! -e "$path/$1" ]]; do
< path=${path%/*}
< done
< APPDIR="$path"
< fi
---
> APPDIR="/usr/lib/an-anime-game-launcher-bin"
14c8
< export LD_LIBRARY_PATH="${APPDIR}/usr/lib:${LD_LIBRARY_PATH}"
---
> export LD_LIBRARY_PATH="/usr/lib:${LD_LIBRARY_PATH}"
18c12
< cd "$APPDIR"
---
> cd "${APPDIR}"
20c14
< exec "$APPDIR/an-anime-game-launcher" $@
\ No newline at end of file
---
> exec "${APPDIR}/an-anime-game-launcher" $@