From 04d688e45acb6fac27c0c4a55af5ba6dc6b84d38 Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Tue, 12 May 2015 18:13:34 +0000 Subject: [PATCH] openttf_gfx: bump version. * the archive format has changed: a zip file containing a tar file. --- ...x-0.4.7.recipe => openttd_gfx-0.5.2.recipe} | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) rename games-simulation/openttd_gfx/{openttd_gfx-0.4.7.recipe => openttd_gfx-0.5.2.recipe} (69%) diff --git a/games-simulation/openttd_gfx/openttd_gfx-0.4.7.recipe b/games-simulation/openttd_gfx/openttd_gfx-0.5.2.recipe similarity index 69% rename from games-simulation/openttd_gfx/openttd_gfx-0.4.7.recipe rename to games-simulation/openttd_gfx/openttd_gfx-0.5.2.recipe index b7e9b638b..b9f1bf927 100644 --- a/games-simulation/openttd_gfx/openttd_gfx-0.4.7.recipe +++ b/games-simulation/openttd_gfx/openttd_gfx-0.5.2.recipe @@ -9,14 +9,13 @@ This package provides free to use graphics file. You can use them if you \ don't have the files from the original Transport Tycoon Deluxe game. " HOMEPAGE="http://www.openttd.org" -SRC_URI="http://binaries.openttd.org/extra/opengfx/$portVersion/opengfx-$portVersion-all.zip" -CHECKSUM_SHA256="10032c683f98b4d378c0651118a4858ae6d3f0a5059302dc3f96bfbfcdc67241" +SRC_URI="http://binaries.openttd.org/extra/opengfx/$portVersion/opengfx-$portVersion-all.zip#noarchive" +CHECKSUM_SHA256="19be61f1cb04cbb3cb9602f0b8eb6e6f56ecbefbfdd6e0e03f9579e5a5c1cbc8" COPYRIGHT="2005-2013 OpenTTD Team" LICENSE="GNU GPL v2" REVISION="1" ARCHITECTURES="any" -SOURCE_DIR="opengfx-$portVersion" PROVIDES=" openttd_gfx = $portVersion " @@ -27,18 +26,23 @@ PROVIDES=" #BUILD_REQUIRES=" # " -#BUILD_PREREQUIRES=" -# " +BUILD_PREREQUIRES=" + cmd:tar + cmd:unzip + " BUILD() { - true + rm -Rf opengfx-$portVersion + unzip -o opengfx-$portVersion-all.zip + tar xvf opengfx-$portVersion.tar + rm opengfx-$portVersion.tar } INSTALL() { mkdir -p $dataDir/openttd/baseset/opengfx - cp * $dataDir/openttd/baseset/opengfx + cp opengfx-$portVersion/* $dataDir/openttd/baseset/opengfx } # no TEST script available