summaryrefslogtreecommitdiff
path: root/games/torcs/torcs.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/torcs/torcs.SlackBuild')
-rw-r--r--games/torcs/torcs.SlackBuild19
1 files changed, 8 insertions, 11 deletions
diff --git a/games/torcs/torcs.SlackBuild b/games/torcs/torcs.SlackBuild
index 366f79832b..f2a72f4416 100644
--- a/games/torcs/torcs.SlackBuild
+++ b/games/torcs/torcs.SlackBuild
@@ -1,20 +1,20 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for torcs
# Written by B. Watson (yalhcru@gmail.com)
+# Licensed under the WTFPL. See http://sam.zoy.org/wtfpl/ for details.
+
PRGNAM=torcs
-VERSION=${VERSION:-1.3.1}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-1.3.4}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -60,12 +60,9 @@ CXXFLAGS="$SLKCFLAGS" \
--mandir=/usr/man \
--build=$ARCH-slackware-linux
-# Cut away jobs number from the MAKEFLAGS
-MAKEFLAGS=$(echo "$MAKEFLAGS" | sed "s/-j[0-999]//g")
-
make -j1
-make install DESTDIR=$PKG
-make datainstall DESTDIR=$PKG
+make -j1 install DESTDIR=$PKG
+make -j1 datainstall DESTDIR=$PKG
# For some reason `make install' creates all the dirs 0777
find $PKG -type d | xargs chmod 0755
@@ -73,7 +70,7 @@ find $PKG -type d | xargs chmod 0755
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-# Tenemos una pagina de man en espanol...
+# Tenemos una pagina de man en espaƱol...
mkdir -p $PKG/usr/man/man6 $PKG/usr/man/es/man6
mv doc/man/$PRGNAM.es.6 $PKG/usr/man/es/man6
mv doc/man/*.6 $PKG/usr/man/man6