summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2018-10-15 01:25:09 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2018-10-15 01:36:10 +0200
commit325f6f3be1983165b76dfd5fce96cfd3ec37c04d (patch)
tree2d4456fc0a5f61e289b663cb1656005068d9874f /games-rpg
parentwww-client/chromium: beta channel bump (70.0.3538.54) (diff)
downloadgentoo-325f6f3be1983165b76dfd5fce96cfd3ec37c04d.tar.gz
gentoo-325f6f3be1983165b76dfd5fce96cfd3ec37c04d.tar.bz2
gentoo-325f6f3be1983165b76dfd5fce96cfd3ec37c04d.zip
games-rpg/arx-fatalis-demo: EAPI-7 bump, drop games.eclass
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'games-rpg')
-rw-r--r--games-rpg/arx-fatalis-demo/arx-fatalis-demo-0-r1.ebuild53
1 files changed, 53 insertions, 0 deletions
diff --git a/games-rpg/arx-fatalis-demo/arx-fatalis-demo-0-r1.ebuild b/games-rpg/arx-fatalis-demo/arx-fatalis-demo-0-r1.ebuild
new file mode 100644
index 00000000000..f249e93678b
--- /dev/null
+++ b/games-rpg/arx-fatalis-demo/arx-fatalis-demo-0-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit desktop
+
+DESCRIPTION="Arx Fatalis demo"
+HOMEPAGE="https://www.arkane-studios.com/uk/arx.php"
+SRC_URI="arx_demo_english.zip"
+
+LICENSE="ArxFatalisDemo"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RESTRICT="fetch"
+
+RDEPEND="games-rpg/arx-libertatis"
+DEPEND="
+ app-arch/cabextract
+ app-arch/unzip
+"
+
+S="${WORKDIR}"
+
+pkg_nofetch() {
+ einfo "Please find and download ${SRC_URI} and put it into ${DISTDIR}."
+ einfo "There is a list of possible download locations at"
+ einfo "http://wiki.arx-libertatis.org/Getting_the_game_data#Demo"
+}
+
+src_unpack() {
+ unpack ${A}
+ cabextract Setup1.cab || die "cabextract failed"
+ cabextract Setup2.cab || die "cabextract failed"
+ cabextract Setup3.cab || die "cabextract failed"
+}
+
+src_install() {
+ insinto /usr/share/${PN}
+ doins -r *.pak bin/*.pak
+ insinto /usr/share/${PN}/misc
+ doins bin/Logo.bmp bin/Arx.ttf
+
+ # convert to lowercase
+ cd "${D}"
+ find . -type f -exec sh -c 'echo "${1}"
+ lower="`echo "${1}" | tr [:upper:] [:lower:]`"
+ [ "${1}" = "${lower}" ] || mv "${1}" "${lower}"' - {} \;
+
+ make_desktop_entry "arx --data-dir=/usr/share/arx-fatalis-demo" \
+ "Arx Fatalis Demo" arx-libertatis
+}