Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-simulation/sky-rogue/
Date: Sat, 29 Aug 2020 19:49:53
Message-Id: 1598730564.fd6284c9283c2635a06bcbb9b9e32cd424b78fa3.chewi@gentoo
1 commit: fd6284c9283c2635a06bcbb9b9e32cd424b78fa3
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 29 11:49:32 2020 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 29 19:49:24 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd6284c9
7
8 games-simulation/sky-rogue: New package
9
10 Package-Manager: Portage-3.0.4, Repoman-3.0.1
11 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
12
13 games-simulation/sky-rogue/Manifest | 1 +
14 games-simulation/sky-rogue/metadata.xml | 8 ++++
15 games-simulation/sky-rogue/sky-rogue-1.3.ebuild | 51 +++++++++++++++++++++++++
16 3 files changed, 60 insertions(+)
17
18 diff --git a/games-simulation/sky-rogue/Manifest b/games-simulation/sky-rogue/Manifest
19 new file mode 100644
20 index 00000000000..c1dbc83c1d2
21 --- /dev/null
22 +++ b/games-simulation/sky-rogue/Manifest
23 @@ -0,0 +1 @@
24 +DIST sky-rogue-linux.zip 153094990 BLAKE2B 2129f624a7b56ec0ddbf6869a75f94468d4efe9efade4d47549b2ae1eebfb4b6e4939190d97acd820c2f46a1a9b2d52614e5a1c7ace717071d482db21b1bd1e1 SHA512 f25dfed7d78355fdbd5a643ec11f948020256fce38e80f9bb8084b875203b26490af6b0164684c187493697a132c7fdc9b40af6b793fd50c9a176285c508d8df
25
26 diff --git a/games-simulation/sky-rogue/metadata.xml b/games-simulation/sky-rogue/metadata.xml
27 new file mode 100644
28 index 00000000000..26079e608be
29 --- /dev/null
30 +++ b/games-simulation/sky-rogue/metadata.xml
31 @@ -0,0 +1,8 @@
32 +<?xml version="1.0" encoding="UTF-8"?>
33 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
34 +<pkgmetadata>
35 + <maintainer type="project">
36 + <email>games@g.o</email>
37 + <name>Gentoo Games Project</name>
38 + </maintainer>
39 +</pkgmetadata>
40
41 diff --git a/games-simulation/sky-rogue/sky-rogue-1.3.ebuild b/games-simulation/sky-rogue/sky-rogue-1.3.ebuild
42 new file mode 100644
43 index 00000000000..d5ad8217583
44 --- /dev/null
45 +++ b/games-simulation/sky-rogue/sky-rogue-1.3.ebuild
46 @@ -0,0 +1,51 @@
47 +# Copyright 1999-2020 Gentoo Authors
48 +# Distributed under the terms of the GNU General Public License v2
49 +
50 +EAPI=7
51 +
52 +inherit eutils desktop xdg
53 +
54 +MY_PN="${PN//-}"
55 +DESCRIPTION="A fwooshy rogue-lite action flight simulator"
56 +HOMEPAGE="https://skyroguegame.com/"
57 +SRC_URI="${PN}-linux.zip"
58 +LICENSE="all-rights-reserved"
59 +SLOT="0"
60 +KEYWORDS="-* ~amd64 ~x86"
61 +RESTRICT="bindist fetch splitdebug"
62 +
63 +RDEPEND="
64 + sys-libs/zlib
65 + virtual/opengl
66 +"
67 +
68 +BDEPEND="
69 + app-arch/unzip
70 +"
71 +
72 +S="${WORKDIR}"
73 +
74 +DIR="/opt/${PN}"
75 +QA_PREBUILT="${DIR#/}/*"
76 +
77 +pkg_nofetch() {
78 + einfo "Please buy and download ${SRC_URI} from:"
79 + einfo " https://fractal-phase.itch.io/${PN}"
80 + einfo "and move it to your distfiles directory."
81 +}
82 +
83 +src_install() {
84 + exeinto "${DIR}"
85 + newexe ${MY_PN}.$(usex amd64 x86_64 x86) ${MY_PN}
86 + make_wrapper ${PN} "${DIR}"/${MY_PN}
87 +
88 + insinto "${DIR}"
89 + doins -r ${MY_PN}_Data/
90 + rm -r "${ED}/${DIR}"/${MY_PN}_Data/*/$(usex amd64 x86 x86_64) || die
91 +
92 + # Some Unity games have a GUI launcher but this one doesn't use it.
93 + rm "${ED}/${DIR}"/${MY_PN}_Data/Plugins/*/ScreenSelector.so || die
94 +
95 + newicon -s 128 ${MY_PN}_Data/Resources/UnityPlayer.png ${PN}.png
96 + make_desktop_entry ${PN} "Sky Rogue"
97 +}