blob: 608fd53e6e0d97fd34ff8f64a23803254d4d8064 (
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
72
73
74
75
76
77
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
M_PN=r2modman
inherit desktop xdg
SRC_URI="
https://github.com/ebkr/${M_PN}Plus/releases/download/v${PV}/${M_PN}-${PV}.tar.gz -> ${P}.tar.gz
https://raw.githubusercontent.com/ebkr/r2modmanPlus/v${PV}/src/assets/icon/16x16.png -> ${P}-16x16.png
https://raw.githubusercontent.com/ebkr/r2modmanPlus/v${PV}/src/assets/icon/32x32.png -> ${P}-32x32.png
https://raw.githubusercontent.com/ebkr/r2modmanPlus/v${PV}/src/assets/icon/48x48.png -> ${P}-48x48.png
https://raw.githubusercontent.com/ebkr/r2modmanPlus/v${PV}/src/assets/icon/64x64.png -> ${P}-64x64.png
https://raw.githubusercontent.com/ebkr/r2modmanPlus/v${PV}/src/assets/icon/96x96.png -> ${P}-96x96.png
https://raw.githubusercontent.com/ebkr/r2modmanPlus/v${PV}/src/assets/icon/128x128.png -> ${P}-128x128.png
https://raw.githubusercontent.com/ebkr/r2modmanPlus/v${PV}/src/assets/icon/192x192.png -> ${P}-192x192.png
https://raw.githubusercontent.com/ebkr/r2modmanPlus/v${PV}/src/assets/icon/256x256.png -> ${P}-256x256.png
"
DESCRIPTION="A simple and easy to use mod manager for several games using Thunderstore"
HOMEPAGE="https://github.com/ebkr/r2modmanPlus"
LICENSE="MIT"
SLOT="0"
RDEPEND="
net-dns/c-ares
media-video/ffmpeg
x11-libs/gtk+
net-libs/http-parser
dev-libs/libappindicator
dev-libs/libevent
x11-libs/libnotify
media-libs/libvpx
dev-libs/libxslt
x11-libs/libXScrnSaver
sys-libs/zlib[minizip]
dev-libs/nss
dev-libs/re2
app-arch/snappy
"
KEYWORDS="~amd64 ~x86"
S="${WORKDIR}"
QA_PREBUILT="
/opt/r2modman/chrome-sandbox
/opt/r2modman/libEGL.so
/opt/r2modman/libGLESv2.so
/opt/r2modman/libffmpeg.so
/opt/r2modman/libvk_swiftshader.so
/opt/r2modman/libvulkan.so
/opt/r2modman/r2modman
/opt/r2modman/swiftshader/libEGL.so
/opt/r2modman/swiftshader/libGLESv2.so
"
src_install() {
# Install binaries file
mv "${M_PN}-${PV}" "${M_PN}" || die #Fix folder name
insinto /opt
doins -r "${M_PN}"
fperms 755 "/opt/${M_PN}/r2modman"
dosym -r /opt/r2modman/r2modman /usr/bin/r2modman
#Install License file in proper location
find "${ED}" -name "LICENSE*" -delete || die
# Install desktop file
domenu "${FILESDIR}/${M_PN}".desktop
# Install icons
for size in 16 32 48 64 96 128 192 256; do
newicon -s ${size} "${DISTDIR}"/${P}-${size}x${size}.png ${M_PN}.png
done
}
|