summaryrefslogtreecommitdiff
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.SlackBuild17
1 files changed, 13 insertions, 4 deletions
diff --git a/games/speed-dreams/speed-dreams.SlackBuild b/games/speed-dreams/speed-dreams.SlackBuild
index 2fee78fa89..7ca91ee52d 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_rc1_r4420
+VERSION=2.0.0_r4687
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -49,11 +49,13 @@ 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
+tar xvf $CWD/$PRGNAM-src-unmaintained-$SRCVERSION.tar.xz
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
-patch -p0 < $CWD/gcc47.patch
+mkdir build
+cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
@@ -62,9 +64,17 @@ cmake \
-DCMAKE_INSTALL_PREFIX:STRING=/usr \
-DCMAKE_PREFIX_PATH:STRING=/usr \
-DOPTION_OFFICIAL_ONLY:BOOL=ON \
- -DOPTION_DEBUG:BOOL=OFF .
+ -DOPTION_DEBUG:BOOL=OFF ..
make
make install DESTDIR=$PKG
+cd -
+
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | \
+ grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2>/dev/null || true
+
+mv $PKG/usr/{share/,}man
+
+find $PKG/usr/man -type f -exec gzip -9 {} \;
mkdir -p $PKG/usr/share/pixmaps
cp -a $CWD/$PRGNAM.xpm $PKG/usr/share/pixmaps
@@ -80,7 +90,6 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
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}