From c205a948abb42ca33a187badfd6702fd66a60cb2 Mon Sep 17 00:00:00 2001 From: "Azamat H. Hackimov" Date: Thu, 19 Mar 2020 22:47:15 +0300 Subject: games-rpg/arx-fatalis-demo: update ebuild Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Azamat H. Hackimov --- .../arx-fatalis-demo/arx-fatalis-demo-0-r1.ebuild | 53 ---------------------- .../arx-fatalis-demo/arx-fatalis-demo-0-r2.ebuild | 45 ++++++++++++++++++ 2 files changed, 45 insertions(+), 53 deletions(-) delete mode 100644 games-rpg/arx-fatalis-demo/arx-fatalis-demo-0-r1.ebuild create mode 100644 games-rpg/arx-fatalis-demo/arx-fatalis-demo-0-r2.ebuild (limited to 'games-rpg') 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 deleted file mode 100644 index 5cc3286..0000000 --- a/games-rpg/arx-fatalis-demo/arx-fatalis-demo-0-r1.ebuild +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright 1999-2020 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="all-rights-reserved" -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 your distfiles directory." - 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 -} diff --git a/games-rpg/arx-fatalis-demo/arx-fatalis-demo-0-r2.ebuild b/games-rpg/arx-fatalis-demo/arx-fatalis-demo-0-r2.ebuild new file mode 100644 index 0000000..689ef22 --- /dev/null +++ b/games-rpg/arx-fatalis-demo/arx-fatalis-demo-0-r2.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Arx Fatalis demo" +HOMEPAGE="https://store.steampowered.com/app/1700/Arx_Fatalis/" +SRC_URI="arx_demo_english.zip" + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +RESTRICT="fetch" + +RDEPEND=" + !games-rpg/arx-fatalis-data + 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 your distfiles directory." + 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 Setup{1,2,3}.cab || die "cabextract failed" +} + +src_install() { + insinto /usr/share/arx/misc + doins bin/Logo.bmp bin/Arx.ttf + insinto /usr/share/arx + newins bin/LOC.pak loc.pak + newins SFX.pak sfx.pak + newins SPEECH.pak speech.pak + doins data.pak bin/data2.pak +} -- cgit v1.2.3-65-gdbad