summaryrefslogtreecommitdiff
path: root/games/speed-dreams/speed-dreams.SlackBuild
diff options
context:
space:
mode:
authorpowtrix <powtrix@gmail.com>2012-03-30 18:33:00 -0500
committerErik Hanson <erik@slackbuilds.org>2012-03-30 18:33:00 -0500
commitd678ba8f82860c19d588245e86c55288f5869587 (patch)
tree7afaa7b1787033f036140f062de06b544bc1bcc7 /games/speed-dreams/speed-dreams.SlackBuild
parenteb5acc1ee87ff37d54af4d251d99601bd217d6a5 (diff)
downloadslackbuilds-d678ba8f82860c19d588245e86c55288f5869587.tar.gz
games/speed-dreams: Updated for version 2.0.0_rc1_r4420
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'games/speed-dreams/speed-dreams.SlackBuild')
-rw-r--r--games/speed-dreams/speed-dreams.SlackBuild33
1 files changed, 21 insertions, 12 deletions
diff --git a/games/speed-dreams/speed-dreams.SlackBuild b/games/speed-dreams/speed-dreams.SlackBuild
index 749df1c36b..2fee78fa89 100644
--- a/games/speed-dreams/speed-dreams.SlackBuild
+++ b/games/speed-dreams/speed-dreams.SlackBuild
@@ -4,7 +4,7 @@
# written by powtrix (@gmail.com)
PRGNAM=speed-dreams
-VERSION=2.0.0_b1_r3937
+VERSION=2.0.0_rc1_r4420
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -42,12 +42,19 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$SRCVERSION-src
-7z x -so $CWD/$PRGNAM-$SRCVERSION-src.tar.7z | tar xfv -
-cd $PRGNAM-$SRCVERSION-src
+rm -rf $PRGNAM-$VERSION
+mkdir -p $PRGNAM-$VERSION
+cd $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-src-base-$SRCVERSION.tar.xz
+tar xvf $CWD/$PRGNAM-src-hq-cars-and-tracks-$SRCVERSION.tar.xz
+tar xvf $CWD/$PRGNAM-src-more-hq-cars-and-tracks-$SRCVERSION.tar.xz
+tar xvf $CWD/$PRGNAM-src-wip-cars-and-tracks-$SRCVERSION.tar.xz
+
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
+patch -p0 < $CWD/gcc47.patch
+
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
@@ -56,22 +63,24 @@ cmake \
-DCMAKE_PREFIX_PATH:STRING=/usr \
-DOPTION_OFFICIAL_ONLY:BOOL=ON \
-DOPTION_DEBUG:BOOL=OFF .
-make VERBOSE=1
+make
make install DESTDIR=$PKG
+mkdir -p $PKG/usr/share/pixmaps
+cp -a $CWD/$PRGNAM.xpm $PKG/usr/share/pixmaps
+
+mkdir -p $PKG/usr/share/applications
+cp -a $CWD/$PRGNAM.desktop $PKG/usr/share/applications
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
mv \
- $PKG/usr/share/games/speed-dreams-2/{CHANGES,COPYING,INSTALL,README,TODO}.txt \
- $PKG/usr/doc/$PRGNAM-$VERSION
+$PKG/usr/share/games/speed-dreams-2/{CHANGES,COPYING,INSTALL,README,TODO}.txt \
+$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-mkdir -p $PKG/usr/share/{pixmaps,applications}
-cp -a $CWD/$PRGNAM.xpm $PKG/usr/share/pixmaps
-cp -a $CWD/$PRGNAM.desktop $PKG/usr/share/applications
-
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}