1 |
commit: 90ca7ccbd80071e11a37350222c17c7dbd1f4b65 |
2 |
Author: Pascal Jäger <pascal.jaeger <AT> leimstift <DOT> de> |
3 |
AuthorDate: Sat May 7 13:12:00 2022 +0000 |
4 |
Commit: Pascal Jäger <pascal.jaeger <AT> leimstift <DOT> de> |
5 |
CommitDate: Sat May 7 13:12:00 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=90ca7ccb |
7 |
|
8 |
games-misc/an-anime-game-launcher-bin: add 2.3.2 |
9 |
|
10 |
Signed-off-by: Pascal Jäger <pascal.jaeger <AT> leimstift.de> |
11 |
|
12 |
games-misc/an-anime-game-launcher-bin/Manifest | 1 + |
13 |
.../an-anime-game-launcher-bin-2.3.2.ebuild | 70 +++++++++++++++++++++ |
14 |
.../files/an-anime-game-launcher-bin-desktop.patch | 17 +++++ |
15 |
.../an-anime-game-launcher-bin-launcher.patch | 26 ++++++++ |
16 |
.../files/an-anime-game-launcher-bin.png | Bin 0 -> 77748 bytes |
17 |
5 files changed, 114 insertions(+) |
18 |
|
19 |
diff --git a/games-misc/an-anime-game-launcher-bin/Manifest b/games-misc/an-anime-game-launcher-bin/Manifest |
20 |
index 229274391..c784aac81 100644 |
21 |
--- a/games-misc/an-anime-game-launcher-bin/Manifest |
22 |
+++ b/games-misc/an-anime-game-launcher-bin/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
+DIST An_Anime_Game_Launcher.AppImage 4383936 BLAKE2B 978be58595b90be13407275527651a2e9154978337e3b618796247fc402643165222b2e5a0d937ab231c15a943ae6e36469a176ca4d6a43dd4995bb98a2b3fb2 SHA512 63be6095af44f760da982a087a8105cba9f792ffc1af3e363e689ec27038507f92e4bc56a7ec2be92b446dbc3cc8164ceb6183e0b104bee555c7570143532304 |
25 |
DIST aagl-ebuilds-2.3.1.tar.gz 4343632 BLAKE2B ba0f8733328469ad531dd8717f230e9e2f723cc12f185fe0f7035b2308e1f41dc92b9af0112a7787ddaf7ab01ae3c0fd12b2998ca09e1215aa11443a4254d08c SHA512 79672a1e0f0f0e0648db5910a33fc7b33d19c3666eb7eba81741f1d2849f0bdf9c76f0533f881a1ad0408b4b6a17eedf5a78c9c5da894c2c971b8d3a48d72928 |
26 |
|
27 |
diff --git a/games-misc/an-anime-game-launcher-bin/an-anime-game-launcher-bin-2.3.2.ebuild b/games-misc/an-anime-game-launcher-bin/an-anime-game-launcher-bin-2.3.2.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000..f84e2e347 |
30 |
--- /dev/null |
31 |
+++ b/games-misc/an-anime-game-launcher-bin/an-anime-game-launcher-bin-2.3.2.ebuild |
32 |
@@ -0,0 +1,70 @@ |
33 |
+# copyright 1999-2022 gentoo authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=8 |
37 |
+ |
38 |
+inherit xdg-utils optfeature |
39 |
+ |
40 |
+DESCRIPTION="Open Source An Anime Game launcher for Linux with automatic anti-cheat patching and telemetry disabling, binary package" |
41 |
+HOMEPAGE="https://gitlab.com/an-anime-team/an-anime-game-launcher" |
42 |
+SRC_URI="https://gitlab.com/an-anime-team/an-anime-game-launcher/uploads/003620e21b2d8d70385bac8f2a862846/An_Anime_Game_Launcher.AppImage" |
43 |
+LICENSE="GPL-3" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64" |
46 |
+PATCHES=( "${FILESDIR}/${PN}-launcher.patch" "${FILESDIR}/${PN}-desktop.patch" ) |
47 |
+ |
48 |
+DEPEND=" |
49 |
+ net-libs/webkit-gtk \ |
50 |
+ dev-util/xdelta[lzma] \ |
51 |
+ app-arch/tar \ |
52 |
+ dev-vcs/git \ |
53 |
+ app-arch/unzip \ |
54 |
+ net-misc/curl \ |
55 |
+ app-arch/cabextract \ |
56 |
+ x11-libs/libnotify \ |
57 |
+ sys-auth/polkit \ |
58 |
+ dev-libs/libdbusmenu \ |
59 |
+ app-emulation/dxvk-bin \ |
60 |
+ app-emulation/winetricks \ |
61 |
+ virtual/wine \ |
62 |
+ " |
63 |
+ |
64 |
+RDEPEND="${DEPEND}" |
65 |
+ |
66 |
+BDEPEND="app-admin/chrpath" |
67 |
+ |
68 |
+src_unpack() { |
69 |
+ mkdir ${WORKDIR}/${P} || die |
70 |
+ cp ${DISTDIR}/An_Anime_Game_Launcher.AppImage ${WORKDIR}/${P} || die |
71 |
+} |
72 |
+ |
73 |
+src_prepare(){ |
74 |
+ chmod +x An_Anime_Game_Launcher.AppImage |
75 |
+ ./An_Anime_Game_Launcher.AppImage --appimage-extract || die "Extraction Failed" |
76 |
+ chrpath -d "squashfs-root/public/discord-rpc/discord-rpc" || die "Patching Library Failed" |
77 |
+ default |
78 |
+ mv "squashfs-root/AppRun" "${PN}" || die |
79 |
+ mv "squashfs-root/an-anime-game-launcher.desktop" "${PN}.desktop" || die |
80 |
+} |
81 |
+ |
82 |
+src_install(){ |
83 |
+ insinto "/usr/lib/${PN}" |
84 |
+ doins "squashfs-root/resources.neu" |
85 |
+ exeinto "/usr/lib/${PN}" |
86 |
+ doexe "squashfs-root/an-anime-game-launcher" |
87 |
+ doins -r "squashfs-root/public" |
88 |
+ insinto "/usr/share/pixmaps" |
89 |
+ doins "${FILESDIR}/${PN}.png" |
90 |
+ exeinto "/usr/bin" |
91 |
+ doexe "${PN}" |
92 |
+ insinto "/usr/share/applications/" |
93 |
+ doins "${PN}.desktop" |
94 |
+} |
95 |
+ |
96 |
+pkg_postinst() { |
97 |
+ xdg_desktop_database_update |
98 |
+ optfeature "Appindicator support" dev-libs/libayatana-appindicator dev-libs/libayatana-appindicator-bin |
99 |
+} |
100 |
+pkg_postrm() { |
101 |
+ xdg_desktop_database_update |
102 |
+} |
103 |
|
104 |
diff --git a/games-misc/an-anime-game-launcher-bin/files/an-anime-game-launcher-bin-desktop.patch b/games-misc/an-anime-game-launcher-bin/files/an-anime-game-launcher-bin-desktop.patch |
105 |
new file mode 100644 |
106 |
index 000000000..229a2acd3 |
107 |
--- /dev/null |
108 |
+++ b/games-misc/an-anime-game-launcher-bin/files/an-anime-game-launcher-bin-desktop.patch |
109 |
@@ -0,0 +1,17 @@ |
110 |
+--- a/squashfs-root/an-anime-game-launcher.desktop |
111 |
++++ b/squashfs-root/an-anime-game-launcher.desktop |
112 |
+ |
113 |
+3,6c3,4 |
114 |
+< Icon=64x64 |
115 |
+< Exec=AppRun |
116 |
+< Type=Application |
117 |
+< Categories=Game; |
118 |
+--- |
119 |
+> Comment=An Launcher for a specific anime game with auto-patching, discord rpc and time tracking |
120 |
+> Exec=an-anime-game-launcher-bin |
121 |
+8c6,8 |
122 |
+< X-AppImage-Version=2.3.2 |
123 |
+--- |
124 |
+> Type=Application |
125 |
+> Icon=an-anime-game-launcher-bin |
126 |
+> Categories=Game |
127 |
|
128 |
diff --git a/games-misc/an-anime-game-launcher-bin/files/an-anime-game-launcher-bin-launcher.patch b/games-misc/an-anime-game-launcher-bin/files/an-anime-game-launcher-bin-launcher.patch |
129 |
new file mode 100644 |
130 |
index 000000000..046d2f0b1 |
131 |
--- /dev/null |
132 |
+++ b/games-misc/an-anime-game-launcher-bin/files/an-anime-game-launcher-bin-launcher.patch |
133 |
@@ -0,0 +1,26 @@ |
134 |
+--- a/squashfs-root/AppRun |
135 |
++++ b/squashfs-root/AppRun |
136 |
+ |
137 |
+4,10c4 |
138 |
+< if [ -z "$APPDIR" ] ; then |
139 |
+< path="$(dirname "$(readlink -f "${THIS}")")" |
140 |
+< while [[ "$path" != "" && ! -e "$path/$1" ]]; do |
141 |
+< path=${path%/*} |
142 |
+< done |
143 |
+< APPDIR="$path" |
144 |
+< fi |
145 |
+--- |
146 |
+> APPDIR="/usr/lib/an-anime-game-launcher-bin" |
147 |
+14c8 |
148 |
+< export LD_LIBRARY_PATH="${APPDIR}/usr/lib:${LD_LIBRARY_PATH}" |
149 |
+--- |
150 |
+> export LD_LIBRARY_PATH="/usr/lib:${LD_LIBRARY_PATH}" |
151 |
+18c12 |
152 |
+< cd "$APPDIR" |
153 |
+--- |
154 |
+> cd "${APPDIR}" |
155 |
+20c14 |
156 |
+< exec "$APPDIR/an-anime-game-launcher" $@ |
157 |
+\ No newline at end of file |
158 |
+--- |
159 |
+> exec "${APPDIR}/an-anime-game-launcher" $@ |
160 |
|
161 |
diff --git a/games-misc/an-anime-game-launcher-bin/files/an-anime-game-launcher-bin.png b/games-misc/an-anime-game-launcher-bin/files/an-anime-game-launcher-bin.png |
162 |
new file mode 100644 |
163 |
index 000000000..89738cd27 |
164 |
Binary files /dev/null and b/games-misc/an-anime-game-launcher-bin/files/an-anime-game-launcher-bin.png differ |