[Slackbuilds-users] [PATCH]
Thomas Morper
thomas at beingboiled.info
Sat Sep 15 16:38:08 UTC 2012
Here's a patch for games/openttd... (did I get it right this time?)
There seems to be a bug in 14.0's "rename" utility that causes file name
substitutions with leading dashes to be interpreted as non-existing
parameters. Using underscores instead, openttd builds and works fine.
Disclaimer: I'm not the maintainer, but I really like this game and
wouldn't want to see it missing in 14.0 :-)
Cheers
--
-------------- next part --------------
From cf6cc8e9d00548201ac65f914ddf206ee4ab1261 Mon Sep 17 00:00:00 2001
From: Thomas Morper <thomas at beingboiled.info>
Date: Sat, 15 Sep 2012 18:11:33 +0200
Subject: [PATCH] games/openttd: changed filenames to avoid bug in "rename"
---
games/openttd/openttd.SlackBuild | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/games/openttd/openttd.SlackBuild b/games/openttd/openttd.SlackBuild
index 6fffcd1..5b5d284 100644
--- a/games/openttd/openttd.SlackBuild
+++ b/games/openttd/openttd.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=openttd
VERSION=${VERSION:-1.2.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
OPENGFX=0.4.4
@@ -103,9 +103,9 @@ make install DEST_DIR=$PKG
# Copy opengfx, opensfx, and openmsx files if OPENDATA=YES
if [ "$OPENDATA" == "YES" ]; then
# First rename some text files to avoid name collisions when copied
- rename .txt -opengfx.txt opengfx-$OPENGFX/*
- rename .txt -opensfx.txt opensfx-$OPENSFX/*
- rename .txt -openmsx.txt openmsx-$OPENMSX/*
+ rename .txt _opengfx.txt opengfx-$OPENGFX/*
+ rename .txt _opensfx.txt opensfx-$OPENSFX/*
+ rename .txt _openmsx.txt openmsx-$OPENMSX/*
# Now copy the data files
mkdir $PKG/usr/share/games/openttd/data/
mkdir $PKG/usr/share/games/openttd/gm/
--
1.7.4.4
More information about the SlackBuilds-users
mailing list