1 |
commit: 7b594507ca4ba1702865c28103ee2235a918494e |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 8 21:59:08 2020 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 8 21:59:08 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b594507 |
7 |
|
8 |
games-action/rive: New package |
9 |
|
10 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
11 |
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> |
12 |
|
13 |
games-action/rive/Manifest | 1 + |
14 |
games-action/rive/metadata.xml | 8 +++++++ |
15 |
games-action/rive/rive-1.15.ebuild | 46 ++++++++++++++++++++++++++++++++++++++ |
16 |
3 files changed, 55 insertions(+) |
17 |
|
18 |
diff --git a/games-action/rive/Manifest b/games-action/rive/Manifest |
19 |
new file mode 100644 |
20 |
index 00000000000..1bbdd715e71 |
21 |
--- /dev/null |
22 |
+++ b/games-action/rive/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST RIVE-Linux-2017-02-28.sh 836583560 BLAKE2B 2194d6174217a395e84f0defc336e741671f62b71cb15dad16fd9c3f1f23d844771e830858bbc8e8a26bd4ebf93e2f9b316c6a2a9c9de74d876a393b9911a806 SHA512 94d236421dc060b8e69552ee6bcbdc4b41caa4934ccf73f8d82dcd2ee14a9c334f43bc74e787a470b3103699c31b4f4ccf9272fbe69640e27df1fdbc2191447c |
25 |
|
26 |
diff --git a/games-action/rive/metadata.xml b/games-action/rive/metadata.xml |
27 |
new file mode 100644 |
28 |
index 00000000000..26079e608be |
29 |
--- /dev/null |
30 |
+++ b/games-action/rive/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-action/rive/rive-1.15.ebuild b/games-action/rive/rive-1.15.ebuild |
42 |
new file mode 100644 |
43 |
index 00000000000..6014bf696de |
44 |
--- /dev/null |
45 |
+++ b/games-action/rive/rive-1.15.ebuild |
46 |
@@ -0,0 +1,46 @@ |
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 desktop unpacker xdg |
53 |
+ |
54 |
+DESCRIPTION="Metal wrecking, robot hacking 360-degree shooter/platformer hybrid" |
55 |
+HOMEPAGE="https://rivethegame.com/" |
56 |
+SRC_URI="${PN^^}-Linux-2017-02-28.sh" |
57 |
+LICENSE="all-rights-reserved" |
58 |
+SLOT="0" |
59 |
+KEYWORDS="-* ~amd64" |
60 |
+RESTRICT="bindist fetch splitdebug" |
61 |
+ |
62 |
+RDEPEND=" |
63 |
+ media-libs/libsdl2[opengl,video] |
64 |
+ media-libs/openal |
65 |
+" |
66 |
+ |
67 |
+S="${WORKDIR}/data" |
68 |
+ |
69 |
+DIR="/opt/${PN}" |
70 |
+QA_PREBUILT="${DIR#/}/*" |
71 |
+ |
72 |
+pkg_nofetch() { |
73 |
+ einfo "Please buy and download ${SRC_URI} from:" |
74 |
+ einfo " https://www.humblebundle.com/store/${PN}" |
75 |
+ einfo "and move it to your distfiles directory." |
76 |
+} |
77 |
+ |
78 |
+src_unpack() { |
79 |
+ unpack_zip ${A} |
80 |
+} |
81 |
+ |
82 |
+src_install() { |
83 |
+ exeinto "${DIR}" |
84 |
+ newexe x86_64/${PN^^}.bin.x86_64 ${PN^^}.bin |
85 |
+ dosym "../..${DIR}"/${PN^^}.bin /usr/bin/${PN} |
86 |
+ |
87 |
+ insinto "${DIR}" |
88 |
+ doins -r noarch/* |
89 |
+ |
90 |
+ newicon -s 256 noarch/app_icon.png ${PN}.png |
91 |
+ make_desktop_entry ${PN} ${PN^^} |
92 |
+} |