From 47ea3d14348d47cedbb65855e9ed0945240bb595 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Fri, 19 Feb 2016 17:41:51 +0100 Subject: [PATCH] games-rpg/pillars-of-eternity: initial import --- .../pillars-of-eternity-2.03.0788.exheres-0 | 123 ++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 packages/games-rpg/pillars-of-eternity/pillars-of-eternity-2.03.0788.exheres-0 diff --git a/packages/games-rpg/pillars-of-eternity/pillars-of-eternity-2.03.0788.exheres-0 b/packages/games-rpg/pillars-of-eternity/pillars-of-eternity-2.03.0788.exheres-0 new file mode 100644 index 00000000..32dad536 --- /dev/null +++ b/packages/games-rpg/pillars-of-eternity/pillars-of-eternity-2.03.0788.exheres-0 @@ -0,0 +1,123 @@ +# Copyright 2016 Julian Ospald +# Distributed under the terms of the GNU General Public License v2 + +require gtk-icon-cache + +SUMMARY="Pillars Of Eternity" +HOMEPAGE="http://www.gog.com/game/pillars_of_eternity_hero_edition" + +BASE_SRC_DL="gog_pillars_of_eternity_2.9.0.13.sh" +DLC1_SRC_DL="gog_pillars_of_eternity_kickstarter_item_dlc_2.0.0.2.sh" +DLC2_SRC_DL="gog_pillars_of_eternity_kickstarter_pet_dlc_2.0.0.2.sh" +DLC3_SRC_DL="gog_pillars_of_eternity_preorder_item_and_pet_dlc_2.0.0.2.sh" +DOWNLOADS="${BASE_SRC_DL} + dlc1? ( ${DLC1_SRC_DL} ) + dlc2? ( ${DLC2_SRC_DL} ) + dlc3? ( ${DLC3_SRC_DL} )" + +LICENCES="all-rights-reserved" +SLOT="0" +PLATFORMS="-* ~amd64" +MYOPTIONS=" + dlc1 [[ description = [ Install the Kickstarter Bonus Item ] ]] + dlc2 [[ description = [ Install the Kickstarter Bonus Pet ] ]] + dlc3 [[ description = [ Install the Pre-Order Bonus Item and Pet ] ]] +" +RESTRICT="fetch bindist" + +DEPENDENCIES=" + run: + dev-libs/atk + media-libs/fontconfig + media-libs/freetype:2 + x11-dri/mesa + x11-libs/cairo + x11-libs/gdk-pixbuf:2.0 + x11-libs/gtk+:2 + x11-libs/pango + build: + virtual/unzip +" + +WORK="${WORKBASE}/data/noarch" + +pkg_nofetch() { + einfo + einfo "Please buy & download \"${BASE_SRC_DL}\"" + option dlc1 && einfo "and \"${DLC1_SRC_DL}\"" + option dlc2 && einfo "and \"${DLC2_SRC_DL}\"" + option dlc3 && einfo "and \"${DLC3_SRC_DL}\"" + einfo "from:" + einfo " ${HOMEPAGE}" + einfo "and move/link it to \"${FETCHEDDIR}\"" + einfo +} + +pkg_setup() { + exdirectory --allow /opt +} + +unpack_zip() { + local file="$1" + + unzip -qo "${file}" + [[ $? -le 1 ]] || die "unpacking ${file} failed!" +} + +src_unpack() { + # unzip + unpack_zip "${FETCHEDDIR}/${DOWNLOADS}" +} + +src_unpack() { + if option dlc1 ; then + unpack_zip "${FETCHEDDIR}/${DLC1_SRC_DL}" + fi + + if option dlc2 ; then + unpack_zip "${FETCHEDDIR}/${DLC2_SRC_DL}" + fi + + if option dlc3 ; then + unpack_zip "${FETCHEDDIR}/${DLC3_SRC_DL}" + fi + + unpack_zip "${FETCHEDDIR}/${BASE_SRC_DL}" +} + +src_install() { + local dir=/opt/${PN} + + insinto /usr/share/icons/hicolor/512x512/apps + newins game/PillarsOfEternity.png ${PN}.png + + herebin ${PN} <