blob: 87a96c6fbe0c94004ed9c625439138255aaa3678 (
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
|
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop
DESCRIPTION="A space flight and rocketry simulation"
HOMEPAGE="https://ksa.ahwoo.com"
SRC_URI="
amd64? (
https://ksa-linux.ahwoo.com/download?file=setup_ksa_v${PV}.${PR#r}.tar.gz -> ${P}-${PR}.tar.gz
)
"
S="${WORKDIR}/linux-x64"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="-* ~amd64"
RESTRICT="mirror strip"
BDEPEND="dev-util/patchelf"
RDEPEND="
media-libs/vulkan-loader
virtual/dotnet-sdk:10.0
"
src_prepare() {
default
# scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH in
# /var/tmp/portage/.../libRakNetDLL.so
patchelf --remove-rpath libRakNetDLL.so || die
}
src_install() {
insinto "/opt/kittenspaceagency"
doins -r .
exeinto "/opt/kittenspaceagency"
doexe "KSA"
doexe "Brutal.Monitor.Subprocess"
cat > kittenspaceagency <<- 'ENDWRAPPER' || die
#!/usr/bin/env bash
cd /opt/kittenspaceagency
XDG_SESSION_TYPE=x11 exec ./KSA "$@"
ENDWRAPPER
dobin kittenspaceagency
make_desktop_entry --eapi9 "/usr/bin/kittenspaceagency" \
-d "kittenspaceagency" \
-n "Kitten Space Agency" \
-C "${DESCRIPTION}"
}
|