diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-04-12 03:41:30 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-04-12 03:41:30 +0100 |
commit | 623ee73d661e5ed8475cb264511f683407d87365 (patch) | |
tree | 993eb27c93ec7a2d2d19550300d888fc1fed9e69 /games-simulation/slime-rancher/slime-rancher-1.4.1c_p34605.ebuild | |
parent | ceeeb463cc1eef97fd62eaee8bf2196ba04bc384 (diff) |
gentoo Easter resync : 12.04.2020
Diffstat (limited to 'games-simulation/slime-rancher/slime-rancher-1.4.1c_p34605.ebuild')
-rw-r--r-- | games-simulation/slime-rancher/slime-rancher-1.4.1c_p34605.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/games-simulation/slime-rancher/slime-rancher-1.4.1c_p34605.ebuild b/games-simulation/slime-rancher/slime-rancher-1.4.1c_p34605.ebuild new file mode 100644 index 000000000000..f69d7ad44247 --- /dev/null +++ b/games-simulation/slime-rancher/slime-rancher-1.4.1c_p34605.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit eutils desktop unpacker xdg + +MY_PN="SlimeRancher" +MY_P="${P//[-.]/_}" +MY_P="${MY_P//_p/_}" + +DESCRIPTION="Cute game where you cultivate slimes on a distant planet" +HOMEPAGE="http://www.slimerancher.com/" +SRC_URI="${MY_P}.sh" +LICENSE="GOG-EULA" +SLOT="0" +KEYWORDS="-* ~amd64" +RESTRICT="bindist fetch splitdebug" + +RDEPEND=" + sys-libs/glibc + virtual/opengl +" + +BDEPEND="app-arch/unzip" + +S="${WORKDIR}/data/noarch/game" + +DIR="/opt/${PN}" +QA_PREBUILT="${DIR}/*" + +pkg_nofetch() { + einfo "Please buy and download ${SRC_URI} from:" + einfo " https://www.gog.com/game/${PN//-/_}" + einfo "and move it to your distfiles directory." +} + +src_unpack() { + unpack_zip ${A} +} + +src_prepare() { + default + + # Some Unity games have a GUI launcher but this one doesn't use it. + rm ${MY_PN}_Data/Plugins/x86_64/ScreenSelector.so || die +} + +src_install() { + exeinto "${DIR}" + newexe ${MY_PN}.x86_64 ${MY_PN} + make_wrapper ${PN} "${DIR}"/${MY_PN} + + insinto "${DIR}" + doins -r ${MY_PN}_Data/ + + newicon -s 128 ${MY_PN}_Data/Resources/UnityPlayer.png ${PN}.png + make_desktop_entry ${PN} "Slime Rancher" +} |