aboutsummaryrefslogtreecommitdiff
path: root/games/speed-dreams/speed-dreams.SlackBuild
diff options
context:
space:
mode:
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 749df1c36bcca..2fee78fa89e14 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}