From 6658f30b4d9bed9f332b6871d1eeb31f39f805db Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Thu, 3 Mar 2016 17:00:41 +0100 Subject: [PATCH] games-strategy/wargus: bump to 2.3.0 --- .../wargus/wargus-2.2.7.exheres-0 | 45 -------------- .../wargus/wargus-2.3.0.exheres-0 | 59 +++++++++++++++++++ 2 files changed, 59 insertions(+), 45 deletions(-) delete mode 100644 packages/games-strategy/wargus/wargus-2.2.7.exheres-0 create mode 100644 packages/games-strategy/wargus/wargus-2.3.0.exheres-0 diff --git a/packages/games-strategy/wargus/wargus-2.2.7.exheres-0 b/packages/games-strategy/wargus/wargus-2.2.7.exheres-0 deleted file mode 100644 index 6bdf0774..00000000 --- a/packages/games-strategy/wargus/wargus-2.2.7.exheres-0 +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 2016 Julian Ospald -# Distributed under the terms of the GNU General Public License v2 - -require cmake gtk-icon-cache - -SUMMARY="Warcraft II for the Stratagus game engine" -HOMEPAGE="http://wargus.sourceforge.net/" -DOWNLOADS="http://launchpad.net/${PN}/trunk/${PV}/+download/${PN}_${PV}.orig.tar.gz" - -LICENCES="GPL-2" -SLOT="0" -PLATFORMS="~amd64 ~x86" -MYOPTIONS="" - -DEPENDENCIES=" - build: - virtual/pkg-config - build+run: - games-engines/stratagus[~${PV}] - media-libs/freetype - media-libs/libpng:= - sys-libs/zlib - x11-libs/gtk+:2 - x11-libs/libX11 -" - -WORK=${WORKBASE}/${PN}_${PV}.orig - -CMAKE_SRC_CONFIGURE_PARAMS=( - -DGAMEDIR=/usr/$(exhost --target)/bin - -DBINDIR=/usr/$(exhost --target)/bin - -DSTRATAGUS=/usr/bin/stratagus - -DSHAREDIR=/usr/share/stratagus/${PN} - -DICONDIR=/usr/share/icons/hicolor/64x64/apps -) - -pkg_postinst() { - elog "You need the Warcraft II game data in" - elog " /usr/share/stratagus/wargus" - elog "unpacked via:" - elog " /usr/$(exhost --target)/bin/wartool -m -v -r \"/data\" /usr/share/stratagus/wargus/" - - gtk-icon-cache_pkg_postinst -} - diff --git a/packages/games-strategy/wargus/wargus-2.3.0.exheres-0 b/packages/games-strategy/wargus/wargus-2.3.0.exheres-0 new file mode 100644 index 00000000..97b6f594 --- /dev/null +++ b/packages/games-strategy/wargus/wargus-2.3.0.exheres-0 @@ -0,0 +1,59 @@ +# Copyright 2016 Julian Ospald +# Distributed under the terms of the GNU General Public License v2 + +require cmake gtk-icon-cache + +SUMMARY="Warcraft II for the Stratagus game engine" +HOMEPAGE="http://wargus.sourceforge.net/" +DOWNLOADS="https://launchpad.net/${PN}/trunk/${PV%.*}/+download/${PN}_${PV}.orig.tar.gz" + +LICENCES="GPL-2" +SLOT="0" +PLATFORMS="~amd64 ~x86" +MYOPTIONS="" + +DEPENDENCIES=" + build: + virtual/pkg-config + build+run: + dev-libs/glib:2 + games-engines/stratagus[~${PV}] + media-libs/freetype:2 + media-libs/libpng:= + sys-libs/zlib + x11-libs/gtk+:2 + x11-libs/libX11 + recommendation: + media-video/ffmpeg2theora [[ description = [ Needed for convert extracted audio CD tracks and video files ] ]] + media/cdparanoia [[ description = [ Needed for rip audio CD tracks ] ]] +" + +WORK=${WORKBASE}/${PN}_${PV}.orig + +CMAKE_SRC_CONFIGURE_PARAMS=( + -DGAMEDIR="/usr/$(exhost --target)/bin" + -DBINDIR="/usr/$(exhost --target)/bin" + -DSTRATAGUS="/usr/bin/stratagus" + -DSHAREDIR="/usr/share/stratagus/${PN}" + -DICONDIR="/usr/share/icons/hicolor/64x64/apps" + -DDESKTOPDIR="/usr/share/applications" + + -DENABLE_STRIP=OFF +) + +src_install() { + cmake_src_install + + # empty + edo find "${IMAGE}"/usr/share/stratagus/wargus -type d -empty -delete +} + +pkg_postinst() { + elog "You need the Warcraft II game data in" + elog " ~/.stratagus/wargus/" + elog "unpacked via:" + elog " /usr/$(exhost --target)/bin/wartool -m -v -r \"/data\" ~/.stratagus/wargus/" + + gtk-icon-cache_pkg_postinst +} +