games/meandmyshadow: Updated for version 0.5a

Signed-off-by: Larry Hajali <larryhaja[at]gmail[dot]com>
This commit is contained in:
Larry Hajali 2018-11-06 13:09:21 -08:00 committed by Willy Sudiarto Raharjo
parent 2cbb085570
commit 9c4f4ad44c
No known key found for this signature in database
GPG key ID: 887B8374D7333381
3 changed files with 15 additions and 13 deletions

View file

@ -1 +1,3 @@
A puzzle/plateform game with a player and its shadow.
Optional: lua53

View file

@ -2,7 +2,7 @@
# Slackware build script for meandmyshadow
# Copyright 2011-2014 Larry Hajali <larryhaja[at]gmail[dot]com>
# Copyright 2011-2018 Larry Hajali <larryhaja[at]gmail[dot]com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -23,13 +23,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=meandmyshadow
VERSION=${VERSION:-0.4.1}
VERSION=${VERSION:-0.5a}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@ -40,8 +40,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@ -70,7 +70,7 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Fix DOS file.
sed -i 's/\r//' docs/ThemeDescription.txt
sed -i 's/\r//' docs/ThemeDescription.md
mkdir -p build
cd build
@ -78,18 +78,18 @@ cd build
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DBINDIR=/usr/games \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -lX11" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_BUILD_TYPE=Release ..
make VERBOSE=1
make install DESTDIR=$PKG
cd ..
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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS ChangeLog COPYING README docs/* $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS ChangeLog COPYING README.md docs/* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install

View file

@ -1,10 +1,10 @@
PRGNAM="meandmyshadow"
VERSION="0.4.1"
VERSION="0.5a"
HOMEPAGE="http://meandmyshadow.sourceforge.net/"
DOWNLOAD="http://downloads.sourceforge.net/meandmyshadow/meandmyshadow-0.4.1-src.tar.gz"
MD5SUM="724cb4a1822572dbe04131b5db658d19"
DOWNLOAD="https://downloads.sourceforge.net/meandmyshadow/meandmyshadow-0.5a-src.tar.gz"
MD5SUM="314cf2df805e2d094c00eca601a05642"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="SDL_gfx"
REQUIRES="lua52 SDL2_image SDL2_mixer SDL2_ttf"
MAINTAINER="Larry Hajali"
EMAIL="larryhaja[at]gmail[dot]com"