aboutsummaryrefslogtreecommitdiff
path: root/games/zsdx/zsdx.SlackBuild
diff options
context:
space:
mode:
authorHunter Sezen <ovariegata@yahoo.com>2016-10-24 17:16:49 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-10-24 17:16:49 +0700
commite155a6bb5d1d25fa12b829560092efe71f49be02 (patch)
tree04420aad1eead28b6fd9b718dbb12b39a9902aec /games/zsdx/zsdx.SlackBuild
parent02f2dc80f03b539fe20468d4d671b4c6e9ed8258 (diff)
games/zsdx: Updated for version 1.11.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/zsdx/zsdx.SlackBuild')
-rw-r--r--games/zsdx/zsdx.SlackBuild31
1 files changed, 15 insertions, 16 deletions
diff --git a/games/zsdx/zsdx.SlackBuild b/games/zsdx/zsdx.SlackBuild
index 0af528d4af33..811d974a1070 100644
--- a/games/zsdx/zsdx.SlackBuild
+++ b/games/zsdx/zsdx.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for Zelda: Mystery of Solarus DX
-# Copyright 2015 Hunter Sezen California, USA
+# Copyright 2015-2016 Hunter Sezen California, USA
# 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=zsdx
-VERSION=${VERSION:-1.10.3}
+VERSION=${VERSION:-1.11.0}
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"
@@ -75,37 +75,36 @@ cd build
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
+ -DSOLARUS_INSTALL_BINDIR:PATH=games \
+ -DSOLARUS_INSTALL_DATADIR:PATH=share/games/solarus \
-DCMAKE_BUILD_TYPE=Release ..
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
-
# Write a desktop file
mkdir -p $PKG/usr/share/applications
cat > $PKG/usr/share/applications/$PRGNAM.desktop <<EOF
[Desktop Entry]
Name=Zelda: Mystery of Solarus DX
Exec=$PRGNAM
-Icon=${PRGNAM}_icon
+Icon=$PRGNAM-logo
Type=Application
Comment=Zelda: Mystery of Solarus DX (action rpg game)
Categories=Game;ActionGame;
EOF
# Add missing icons to package
-for size in $(find /usr/share/icons/hicolor -type d -mindepth 1 -maxdepth 1 -exec basename {} \; | cut -f1 -d"x"); do
- if ls build/icons/*${size}* 1>/dev/null 2>/dev/null; then
- mkdir -p $PKG/usr/share/icons/hicolor/${size}x${size}/apps
- cp -a build/icons/*${size}*.png \
- $PKG/usr/share/icons/hicolor/${size}x${size}/apps/${PRGNAM}_icon.png
- fi
+for pngicon in data/logos/icon_*.png ; do
+ if [ -f $pngicon ]; then
+ size=$(basename $pngicon .png | tr -dc 0-9)
+ install -Dm0644 $pngicon $PKG/usr/share/icons/hicolor/${size}x${size}/apps/$PRGNAM.png
+ fi
done
+install -Dm0644 data/logos/logo_2x.png $PKG/usr/share/pixmaps/$PRGNAM-logo.png
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a ChangeLog license.txt readme.txt work/*.txt $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a changelog.txt license.txt readme.md work/*.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install