From 50afe48396206d9c91d7895838c488e155f967ed Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Tue, 28 Apr 2020 22:05:27 +0200 Subject: [PATCH] games-roguelike/FTL: bump to 1.6.12 --- .../FTL/FTL-1.5.13-r2.exheres-0 | 100 ------------------ ...L-1.6.3.exheres-0 => FTL-1.6.12.exheres-0} | 2 +- 2 files changed, 1 insertion(+), 101 deletions(-) delete mode 100644 packages/games-roguelike/FTL/FTL-1.5.13-r2.exheres-0 rename packages/games-roguelike/FTL/{FTL-1.6.3.exheres-0 => FTL-1.6.12.exheres-0} (97%) diff --git a/packages/games-roguelike/FTL/FTL-1.5.13-r2.exheres-0 b/packages/games-roguelike/FTL/FTL-1.5.13-r2.exheres-0 deleted file mode 100644 index 5d86175..0000000 --- a/packages/games-roguelike/FTL/FTL-1.5.13-r2.exheres-0 +++ /dev/null @@ -1,100 +0,0 @@ -# Copyright 2016 Julian Ospald -# Distributed under the terms of the GNU General Public License v2 - -require desktop-utils - -SUMMARY="Faster Than Light: A spaceship simulation real-time roguelike-like game" -HP="http://www.ftlgame.com" -GOG_HP="https://www.gog.com/game/faster_than_light" -HOMEPAGE="${HP} ${GOG_HP}" -FTL_SH="gog_ftl_advanced_edition_2.0.0.2.sh" -FTL_TAR="FTL.${PV}.tar.gz" -DOWNLOADS=" - gog? ( manual: ${FTL_SH} ) - !gog? ( manual: ${FTL_TAR} ) -" - -LICENCES="all-rights-reserved Boost-1.0 free-noncomm MIT FTL LGPL-2.1 ZLIB libpng" -SLOT="0" -PLATFORMS="-* ~amd64 ~x86" -MYOPTIONS=" - gog [[ description = [ Use the gog advanced edition version ] ]] - ( platform: amd64 x86 ) -" -RESTRICT="fetch" - -DEPENDENCIES=" - run: - media-libs/DevIL - media-libs/SDL:0[X] - media-libs/freetype:2 - sys-libs/zlib - x11-dri/mesa - build: - virtual/unzip -" - -WORK="${WORKBASE}" - -pkg_nofetch() { - local hp=${HP} - optionq gog && hp=${GOG_HP} - local file=${FTL_TAR} - optionq gog && file=${FTL_SH} - - einfo "Please buy & download ${file} from:" - einfo " ${hp}" - einfo "and move it to ${FETCHEDDIR}" - einfo -} - -pkg_setup() { - exdirectory --allow /opt -} - -src_unpack() { - if optionq gog ; then - unzip -qo "${FETCHEDDIR}/${FTL_SH}" - [[ $? -le 1 ]] || die "unpacking ${FTL_SH} failed!" - else - default - fi -} - -src_install() { - local dir=/opt/${PN} - local arch=$(option platform:amd64 "amd64" "x86") - local datadir=${WORKBASE}/${PN}/data - optionq gog && datadir=${WORKBASE}/data/noarch/game/data - local htmldir=${WORKBASE}/${PN} - optionq gog && htmldir=${WORKBASE}/data/noarch/docs - - insinto "${dir}" - doins -r "${datadir}"/resources - - exeinto "${dir}"/bin - doexe "${datadir}"/${arch}/bin/${PN} - exeinto "${dir}"/lib - doexe "${datadir}"/${arch}/lib/*.so* - - herebin ${PN} << EOF -#!/bin/sh -cd "/opt/FTL" -if [ "\${LD_LIBRARY_PATH+set}" = "set" ] ; then -export LD_LIBRARY_PATH="\${LD_LIBRARY_PATH}:/opt/FTL/lib" -else -export LD_LIBRARY_PATH="/opt/FTL/lib" -fi -exec /opt/FTL/bin/FTL "\$@" -EOF - - install_desktop_entry "Name=Faster Than Light" \ - "Icon=/usr/share/pixmaps/FTL.bmp" - - insinto /usr/share/pixmaps - newins "${datadir}"/resources/exe_icon.bmp FTL.bmp - - insinto /usr/share/doc/${PNVR}/html - doins "${htmldir}"/${PN}_README.html -} - diff --git a/packages/games-roguelike/FTL/FTL-1.6.3.exheres-0 b/packages/games-roguelike/FTL/FTL-1.6.12.exheres-0 similarity index 97% rename from packages/games-roguelike/FTL/FTL-1.6.3.exheres-0 rename to packages/games-roguelike/FTL/FTL-1.6.12.exheres-0 index a148835..d9665ea 100644 --- a/packages/games-roguelike/FTL/FTL-1.6.3.exheres-0 +++ b/packages/games-roguelike/FTL/FTL-1.6.12.exheres-0 @@ -7,7 +7,7 @@ SUMMARY="Faster Than Light: A spaceship simulation real-time roguelike-like game HP="http://www.ftlgame.com" GOG_HP="https://www.gog.com/game/faster_than_light" HOMEPAGE="${HP} ${GOG_HP}" -FTL_SH="ftl_advanced_edition_en_1_6_3_17917.sh" +FTL_SH="ftl_advanced_edition_1_6_12_2_35269.sh" DOWNLOADS="manual: ${FTL_SH}" LICENCES="all-rights-reserved Boost-1.0 free-noncomm MIT FTL LGPL-2.1 ZLIB libpng"