games/meandmyshadow: Updated for version 0.4.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
Larry Hajali 2012-12-10 21:44:40 +01:00 committed by dsomero
parent ad15b5c121
commit 513625d688
2 changed files with 9 additions and 14 deletions

View file

@ -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/*

View file

@ -1,8 +1,8 @@
PRGNAM="meandmyshadow"
VERSION="0.3"
VERSION="0.4"
HOMEPAGE="http://meandmyshadow.sourceforge.net/"
DOWNLOAD="http://downloads.sourceforge.net/meandmyshadow/meandmyshadow-0.3-src.tar.gz"
MD5SUM="a943cb32c901f65843be517ff781943b"
DOWNLOAD="http://downloads.sourceforge.net/meandmyshadow/meandmyshadow-0.4-src.tar.gz"
MD5SUM="8a40de429d0ac7820d367825ba38d08a"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="SDL_gfx"