blob: 0b3c563441dc1e34af58bd2026b91db4f87c88d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Open Source An Anime Game launcher for Linux with automatic anti-cheat patching and telemetry disabling"
HOMEPAGE="https://gitlab.com/an-anime-team/an-anime-game-launcher"
SRC_URI="https://gitlab.com/an-anime-team/aagl-ebuilds/-/archive/${PV}/aagl-ebuilds-${PV}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
DEPEND="
|| ( dev-libs/libayatana-appindicator dev-libs/libayatana-appindicator-bin ) \
net-libs/webkit-gtk \
dev-util/xdelta \
app-arch/tar \
dev-vcs/git \
app-arch/unzip \
net-misc/curl \
app-arch/cabextract \
x11-libs/libnotify \
sys-auth/polkit \
dev-libs/libdbusmenu \
app-emulation/dxvk-bin \
app-emulation/winetricks \
virtual/wine \
"
# !games-misc/an-anime-game-launcher \
# "
RDEPEND="${DEPEND}"
BDEPEND="app-admin/chrpath"
S="${WORKDIR}/aagl-ebuilds-${PV}"
src_prepare(){
mv "icon.png" "${PN}.png"
mv "launcher.sh" "${PN}"
chmod +x "An_Anime_Game_Launcher.AppImage"
./An_Anime_Game_Launcher.AppImage --appimage-extract || die "Extraction Failed"
chrpath -d "squashfs-root/public/discord-rpc/discord-rpc" || die "Patching Library Failed"
eapply_user
}
src_install(){
dodir "/usr/lib/${PN}"
einfo "Inserting Launcher Files"
doins -r "squashfs-root/resources.neu"
einfo "Inserting Launcher Binary"
doins -r "squashfs-root/an-anime-game-launcher"
einfo "Setting Executable Permissions for Binary"
chmod +x "${D}/usr/lib/${PN}/an-anime-game-launcher"
einfo "Inserting More Launcher Files"
doins -r "squashfs-root/public"
einfo "Inserting Icons"
insinto "/usr/share/pixmaps"
doins "${PN}.png" || die "Insertion Failed"
einfo "Inserting Start Script"
insinto "/usr/bin"
doins "${PN}" || die "Insertion Failed"
einfo "Setting Executable Permissions for Launch Script"
chmod +x "${D}/usr/bin/${PN}"
einfo "Inserting Desktop Shortcut"
insinto "/usr/share/applications/"
doins "${PN}.desktop"
einfo "Setting Read Permissions for Launcher Files"
chmod -R 775 "${D}/usr/lib/${PN}/public"
}
|