aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja[at]gmail[dot]com>2015-05-09 13:34:56 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-05-09 13:34:56 +0700
commit9116aa15d557351601536309b2c34669f1f0ce63 (patch)
tree178c78520e7d71210d32e64f4fec7f99a1f5bd84 /games
parentde2474de319d1595dfe101811239b74a08dc2b0a (diff)
games/dustrac: Updated for version 1.11.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r--games/dustrac/README5
-rw-r--r--games/dustrac/dustrac.SlackBuild25
-rw-r--r--games/dustrac/dustrac.info8
3 files changed, 11 insertions, 27 deletions
diff --git a/games/dustrac/README b/games/dustrac/README
index 542673d3ce12a..11235e7cb7225 100644
--- a/games/dustrac/README
+++ b/games/dustrac/README
@@ -2,8 +2,3 @@ Dust Racing (Dustrac) is a tile-based, cross-platform 2D racing game written in
Qt (C++) and OpenGL. Dust Racing comes with a Qt-based level editor for easy
level creation. A custom engine, MiniCore, is used for physics modeling. Dust
Racing 2D is inspired by Super Cars and Slicks'n Slide.
-
-If you'd like to build against the optional dependency qt5 then run the
-slackbuild with USEQT5=yes, like
-
- USEQT5=yes ./dustrac.SlackBuild
diff --git a/games/dustrac/dustrac.SlackBuild b/games/dustrac/dustrac.SlackBuild
index ab71d9920de54..54fca85170d0b 100644
--- a/games/dustrac/dustrac.SlackBuild
+++ b/games/dustrac/dustrac.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for dustrac
-# Copyright 2013-2014 Larry Hajali <larryhaja[at]gmail[dot]com>
+# Copyright 2013-2015 Larry Hajali <larryhaja[at]gmail[dot]com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=dustrac
-VERSION=${VERSION:-1.7.3}
+VERSION=${VERSION:-1.11.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -65,29 +65,18 @@ cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-
-# Fix .desktop item
-sed -i '/^Categories/s|.*|&;|' src/*.in
-
-# Determine if we use Qt5. Default is Qt4.
-if [ "${USEQT5:-no}" == "yes" ]; then
- QT5GUI="ON"
-else
- QT5GUI="OFF"
-fi
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
cmake -G "Unix Makefiles" \
-DCMAKE_INSTALL_PREFIX:PATH="/usr" \
- -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS -I/usr/include/qt5/QtGui" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -I/usr/include/qt5/QtGui" \
-DBIN_PATH="games" \
-DDATA_PATH="/usr/share/$PRGNAM" \
-DDOC_PATH:PATH="/usr/doc/$PRGNAM-$VERSION" \
- -DUseQt5:BOOL="$QT5GUI" \
- -DGL30:BOOL=ON \
+ -DNO_GLEW:BOOL=OFF \
-DReleaseBuild:BOOL=ON \
.
diff --git a/games/dustrac/dustrac.info b/games/dustrac/dustrac.info
index 4532df0126017..b381c1dd8e677 100644
--- a/games/dustrac/dustrac.info
+++ b/games/dustrac/dustrac.info
@@ -1,10 +1,10 @@
PRGNAM="dustrac"
-VERSION="1.7.3"
+VERSION="1.11.0"
HOMEPAGE="http://dustrac.sourceforge.net"
-DOWNLOAD="http://downloads.sourceforge.net/dustrac/dustrac-1.7.3.tar.gz"
-MD5SUM="0a0e8f01db34b5b27d8137245d0c6821"
+DOWNLOAD="https://github.com/juzzlin/DustRacing2D/releases/download/1.11.0/dustrac-1.11.0.tar.gz"
+MD5SUM="bac37f501a6fbc17307ad6ce223ddb60"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="OpenAL"
+REQUIRES="OpenAL qt5"
MAINTAINER="Larry Hajali"
EMAIL="larryhaja[at]gmail[dot]com"