diff options
author | Larry Hajali <larryhaja[at]gmail[dot]com> | 2012-12-10 21:44:40 +0100 |
---|---|---|
committer | dsomero <xgizzmo@slackbuilds.org> | 2012-12-11 16:23:06 -0500 |
commit | 513625d6886d4d7642ed66766c8234e72f0adf3c (patch) | |
tree | b17a8c5017e61878674c5098848bc3a1b4b956e8 /games/meandmyshadow/meandmyshadow.SlackBuild | |
parent | ad15b5c121854035eb1582c083dccd5971ec9911 (diff) | |
download | slackbuilds-513625d6886d4d7642ed66766c8234e72f0adf3c.tar.gz |
games/meandmyshadow: Updated for version 0.4.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'games/meandmyshadow/meandmyshadow.SlackBuild')
-rw-r--r-- | games/meandmyshadow/meandmyshadow.SlackBuild | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/games/meandmyshadow/meandmyshadow.SlackBuild b/games/meandmyshadow/meandmyshadow.SlackBuild index 63bb8b3bcf..bde742c7a4 100644 --- a/games/meandmyshadow/meandmyshadow.SlackBuild +++ b/games/meandmyshadow/meandmyshadow.SlackBuild @@ -5,8 +5,8 @@ # Written by Larry Hajali <larryhaja[at]gmail[dot]com> PRGNAM=meandmyshadow -VERSION=${VERSION:-0.3} -BUILD=${BUILD:-2} +VERSION=${VERSION:-0.4} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -51,19 +51,14 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# Fix .desktop file. -sed -i -e '/^Version/d' -e 's|;Game;|;|' meandmyshadow.desktop - -# SLKCFLAGS are respected. -sed -i "s|-Wall -g|& $SLKCFLAGS|" CMakeLists.txt - -# From upstream. Fix for building with gcc 4.7.x. -patch -p1 < $CWD/gcc-4.7.patch +# Fix DOS file. +sed -i 's/\r//' docs/ThemeDescription.txt mkdir -p build cd build cmake -G "Unix Makefiles" \ -DCMAKE_INSTALL_PREFIX:PATH=/usr \ + -DBINDIR=/usr/games \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_BUILD_TYPE=Release .. @@ -76,7 +71,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a License ThemeDescription.txt $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS ChangeLog COPYING README docs/* $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild sed -i 's/\r//' $PKG/usr/doc/$PRGNAM-$VERSION/* |