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-action/a-story-about-my-uncle/, games-action/a-story-about-my-uncle/files/
Date: Sun, 04 Sep 2022 10:52:19
Message-Id: 1662288719.2bcd079aabc431e62e55b5a087ad4c63e56d0014.chewi@gentoo
1 commit: 2bcd079aabc431e62e55b5a087ad4c63e56d0014
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 4 10:50:21 2022 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 4 10:51:59 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2bcd079a
7
8 games-action/a-story-about-my-uncle: New package at version 5188
9
10 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
11
12 games-action/a-story-about-my-uncle/Manifest | 2 +
13 .../a-story-about-my-uncle-5188.ebuild | 71 ++++++++++++++++++++++
14 .../a-story-about-my-uncle/files/wrapper.sh | 9 +++
15 games-action/a-story-about-my-uncle/metadata.xml | 22 +++++++
16 4 files changed, 104 insertions(+)
17
18 diff --git a/games-action/a-story-about-my-uncle/Manifest b/games-action/a-story-about-my-uncle/Manifest
19 new file mode 100644
20 index 000000000000..9706fb85be4f
21 --- /dev/null
22 +++ b/games-action/a-story-about-my-uncle/Manifest
23 @@ -0,0 +1,2 @@
24 +DIST ASAMU.png 5451 BLAKE2B 767d4cb7ba77430a70b776370e1c25e486c02cac14a9bfdff18be2fd869b38ed27d43d756409a0aeb319b1e5653a28dfa45f6310139f1c752796a7545b506f98 SHA512 1871986ee96e4c6cb4225e418b83ce970674f71504d97b8a9f764716ae85e9a1ef01831a12e1010d9e2c681b93ac35ee2a35429612aaa6d37a42a6b9756c5024
25 +DIST Linux-NoDRM-ASAMU_5188.zip 997974042 BLAKE2B fe7920e18d4d867203fb10db3ab22b7b831abd08c07c6611a0e52249244aa519bbbee235382ae5b00ba85126a5c456700836331a8bf3f8542c14837de879b3ba SHA512 2ae3e811cb35f61d69cedf7d9ac35db88b6bb78ef8b43599732f5f7db13cf13993a6f01d7b097d8fe98e50265652003988c785e4132c18251a3b7335521fea96
26
27 diff --git a/games-action/a-story-about-my-uncle/a-story-about-my-uncle-5188.ebuild b/games-action/a-story-about-my-uncle/a-story-about-my-uncle-5188.ebuild
28 new file mode 100644
29 index 000000000000..f6d88f93d2ec
30 --- /dev/null
31 +++ b/games-action/a-story-about-my-uncle/a-story-about-my-uncle-5188.ebuild
32 @@ -0,0 +1,71 @@
33 +# Copyright 1999-2022 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +CHECKREQS_DISK_BUILD="1219M"
39 +inherit check-reqs desktop prefix xdg
40 +
41 +MY_PN="ASAMU"
42 +MY_P="${MY_PN}_${PV}"
43 +DESCRIPTION="First person platforming adventure game about a boy who searches for his lost uncle"
44 +HOMEPAGE="https://www.humblebundle.com/store/a-story-about-my-uncle"
45 +SRC_URI="Linux-NoDRM-${MY_P}.zip
46 + fetch+https://dev.gentoo.org/~chewi/distfiles/${MY_PN}.png"
47 +
48 +LICENSE="all-rights-reserved"
49 +SLOT="0"
50 +KEYWORDS="-* ~amd64 ~x86"
51 +RESTRICT="bindist fetch splitdebug"
52 +
53 +BDEPEND="
54 + app-arch/unzip
55 +"
56 +
57 +RDEPEND="
58 + media-libs/libsdl2[opengl,sound,video]
59 + sys-apps/bubblewrap
60 + >=sys-devel/gcc-3.4
61 + >=sys-libs/glibc-2.14
62 + virtual/opengl
63 +"
64 +
65 +S="${WORKDIR}"
66 +DIR="/opt/${MY_PN}"
67 +QA_PREBUILT="${DIR#/}/*"
68 +
69 +pkg_nofetch() {
70 + einfo "Please buy and download Linux-NoDRM-${MY_P}.zip from:"
71 + einfo " ${HOMEPAGE}"
72 + einfo "and move it to your distfiles directory."
73 +}
74 +
75 +src_prepare() {
76 + default
77 + rm -v Binaries/*/libSDL2-2.0.so.0 || die
78 +}
79 +
80 +src_install() {
81 + insinto "${DIR}"
82 + doins -r ${MY_PN}/ Engine/
83 +
84 + # The game resets the user config when the timestamps of the other config
85 + # files change, and doins does not preserve timestamps. Reduce the impact of
86 + # this by preserving the original timestamps with touch
87 + local file
88 + find -type f -name "*.ini" -print0 | while read -rd '' file; do
89 + touch -r "${file}" "${ED}${DIR}/${file}" || die
90 + done
91 +
92 + local platform=linux-$(usex amd64 amd64 x86)
93 + insinto "${DIR}"/Binaries/gentoo
94 + exeinto "${DIR}"/Binaries/gentoo
95 + doins Binaries/${platform}/steam_appid.txt
96 + doexe Binaries/${platform}/{${MY_PN},*.so*}
97 +
98 + keepdir "${DIR}"/${MY_PN}/Saves
99 + newbin $(prefixify_ro "${FILESDIR}"/wrapper.sh) ${MY_PN}
100 +
101 + doicon -s 64 "${DISTDIR}"/${MY_PN}.png
102 + make_desktop_entry ${MY_PN} "A Story About My Uncle" ${MY_PN}
103 +}
104
105 diff --git a/games-action/a-story-about-my-uncle/files/wrapper.sh b/games-action/a-story-about-my-uncle/files/wrapper.sh
106 new file mode 100644
107 index 000000000000..b81badb1f99f
108 --- /dev/null
109 +++ b/games-action/a-story-about-my-uncle/files/wrapper.sh
110 @@ -0,0 +1,9 @@
111 +#!/bin/sh -eu
112 +
113 +# Unfortunately, this game always writes within its own installation directory
114 +# rather than HOME. We work around this with bubblewrap.
115 +
116 +DIR="${HOME}"/.local/share/ASAMU
117 +mkdir -p "${DIR}"/Saves
118 +cp -r --preserve=timestamps /opt/ASAMU/ASAMU/Config/ "${DIR}"/
119 +exec bwrap --bind / / --dev-bind /dev /dev --bind "${DIR}"/Config /opt/ASAMU/ASAMU/Config --bind "${DIR}"/Saves /opt/ASAMU/ASAMU/Saves /opt/ASAMU/Binaries/gentoo/ASAMU "${@}"
120
121 diff --git a/games-action/a-story-about-my-uncle/metadata.xml b/games-action/a-story-about-my-uncle/metadata.xml
122 new file mode 100644
123 index 000000000000..9388d049a4d3
124 --- /dev/null
125 +++ b/games-action/a-story-about-my-uncle/metadata.xml
126 @@ -0,0 +1,22 @@
127 +<?xml version="1.0" encoding="UTF-8"?>
128 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
129 +<pkgmetadata>
130 + <maintainer type="project">
131 + <email>games@g.o</email>
132 + <name>Gentoo Games Project</name>
133 + </maintainer>
134 + <longdescription lang="en">
135 + A Story About My Uncle is a first person platforming adventure game
136 + about a boy who searches for his lost uncle, and ends up in a world he
137 + couldn’t imagine existed. Take help of your uncle’s mysterious
138 + inventions that let you jump incredibly high and far through beautiful
139 + scenery, uncover clues to your uncle’s whereabouts, and meet fantastical
140 + creatures that will help you on your journey.
141 +
142 + The movement in A Story About My Uncle is a crucial part of its core
143 + gameplay – focusing on swinging through the world with a grappling hook
144 + that gives the player a wonderful sense of speed and freedom. Soar
145 + through a game world with a unique art style and a mysterious story that
146 + unravels before you.
147 + </longdescription>
148 +</pkgmetadata>