summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorCarlos Corbacho <carlos@strangeworlds.co.uk>2018-01-07 17:53:48 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-01-10 23:55:48 +0700
commit8ebe33816bf5fccca526846cc0e88b2765185c30 (patch)
treeb8b067de88cab82d351f24a377a0a9332fdf3471 /games
parenteb7ac7304e74f03ce410a121817e2ef4d6cb6089 (diff)
downloadslackbuilds-8ebe33816bf5fccca526846cc0e88b2765185c30.tar.gz
games/residualvm: Updated for version 0.3.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r--games/residualvm/residualvm.SlackBuild33
-rw-r--r--games/residualvm/residualvm.info6
2 files changed, 24 insertions, 15 deletions
diff --git a/games/residualvm/residualvm.SlackBuild b/games/residualvm/residualvm.SlackBuild
index 286d3c68f0..e2a2f8861e 100644
--- a/games/residualvm/residualvm.SlackBuild
+++ b/games/residualvm/residualvm.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for ResidualVM
-# Copyright 2013 Carlos Corbacho, United Kingdom
+# Copyright 2013-2018 Carlos Corbacho <carlos@strangeworlds.co.uk>
# 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=residualvm
-VERSION=${VERSION:-0.1.1}
+VERSION=${VERSION:-0.3.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"
@@ -54,7 +54,7 @@ else
LIBDIRSUFFIX=""
fi
-set -e
+set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -64,10 +64,10 @@ tar xvf $CWD/$PRGNAM-$VERSION-sources.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -77,11 +77,20 @@ CXXFLAGS="$SLKCFLAGS" \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
- --disable-debug
+ --disable-debug \
+ --enable-release
make
make install DESTDIR=$PKG
+# The .desktop file for the menu is not being installed
+install -D -m 0644 dists/residualvm.desktop \
+ $PKG/usr/share/applications/residualvm.desktop
+
+# Hardcode the location for the .desktop icon
+sed -i s%Icon=%Icon=/usr/share/pixmaps/% \
+ $PKG/usr/share/applications/residualvm.desktop
+
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
@@ -90,7 +99,7 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- AUTHORS COPYING* COPYRIGHT KNOWN_BUGS NEWS README TODO \
+ AUTHORS COPYING* COPYRIGHT KNOWN_BUGS NEWS README* TODO \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
diff --git a/games/residualvm/residualvm.info b/games/residualvm/residualvm.info
index 1441a41f37..139dc27015 100644
--- a/games/residualvm/residualvm.info
+++ b/games/residualvm/residualvm.info
@@ -1,8 +1,8 @@
PRGNAM="residualvm"
-VERSION="0.1.1"
+VERSION="0.3.0"
HOMEPAGE="http://residualvm.org"
-DOWNLOAD="http://downloads.sourceforge.net/residualvm/residualvm-0.1.1-sources.tar.bz2"
-MD5SUM="1fbec866c54f16ae0968ec7d2d01aa4f"
+DOWNLOAD="http://www.residualvm.org/downloads/release/0.3.0/residualvm-0.3.0-sources.tar.bz2"
+MD5SUM="24cb0c51faf7b01447ff0ff76b3344f1"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""