blob: 5c07fda8bf70e56d80b14f444c370f8284c9985d (
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
|
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop unpacker
DESCRIPTION="A true Non-Euclidean curved space like you've never experienced before!"
HOMEPAGE="https://codeparade.itch.io/hyperbolica"
SRC_URI="Hyperbolica-Linux-x64.zip"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="bindist fetch"
DEPEND="app-arch/unzip"
RDEPEND="${DEPEND}
media-libs/mesa
sys-libs/glibc:2.2
x11-libs/gdk-pixbuf:2
x11-libs/gtk+:2
x11-libs/libX11
x11-libs/libXcursor
x11-libs/libXrandr
"
BDEPEND=""
QA_PREBUILT="opt/${PN}/UnityPlayer.so opt/${PN}/Hyperbolica_Data/Plugins/libsteam_api.so opt/${PN}/GameAssembly.so opt/${PN}/Hyperbolica.x86_64"
pkg_nofetch() {
einfo ""
einfo "Please buy and download \"${A}\" from corresponding shop Itch.io"
einfo "and move/link it to \"${DISTDIR}\""
einfo "You can get more info on ${HOMEPAGE}"
einfo ""
}
src_unpack() {
unpack_zip ${A}
mv "${PN}" "${S}" || die "mv failed"
}
src_install() {
local dir="/opt/${PN}"
insinto "${dir}"
exeinto "${dir}"
doins -r .
doexe Hyperbolica.x86_64 || die "Failed to install executables"
newicon "Hyperbolica_Data/Resources/UnityPlayer.png" "${PN}.png"
make_desktop_entry "${dir}/${PN}.x86_64" "Hyperbolica" "${PN}" || die "make_desktop_entry failed"
}
|