summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
Diffstat (limited to 'games')
-rw-r--r--games/openmsx-catapult/openmsx-catapult.SlackBuild23
-rw-r--r--games/openmsx-catapult/openmsx-catapult.info10
2 files changed, 18 insertions, 15 deletions
diff --git a/games/openmsx-catapult/openmsx-catapult.SlackBuild b/games/openmsx-catapult/openmsx-catapult.SlackBuild
index fe89ac0c14..8a8c4f7da8 100644
--- a/games/openmsx-catapult/openmsx-catapult.SlackBuild
+++ b/games/openmsx-catapult/openmsx-catapult.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for OpenMSX-Catapult
# Copyright 2013-2014 Erwin van Zanten, Dordrecht, The Netherlands
+# Copyright 2015 Philip van der Hoeven, Almere, The Netherlands
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=openmsx-catapult
-VERSION=${VERSION:-0.10.1}
+VERSION=${VERSION:-0.11.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -69,28 +70,30 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+sed -i 's@SYMLINK_FOR_BINARY:=true@SYMLINK_FOR_BINARY:=false@' build/custom.mk
+sed -i 's@/opt/openMSX-Catapult@/usr/share/openmsx-catapult@' build/custom.mk
+sed -i 's@/opt/openMSX/bin/openmsx@/usr/bin/openmsx@' build/custom.mk
+sed -i 's@/opt/openMSX/share@/usr/share/openmsx@' build/custom.mk
+echo "INSTALL_DOC_DIR:=/usr/doc/openmsx-catapult-$VERSION" >> build/custom.mk
+echo "INSTALL_SHARE_DIR:=/usr/share/openmsx-catapult" >> build/custom.mk
+echo "INSTALL_BINARY_DIR:=/usr/bin" >> build/custom.mk
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
-SYMLINK_FOR_BINARY=false \
make
-make install INSTALL_BASE=$PKG/opt/openMSX-Catapult
+make install DESTDIR=$PKG
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
-# Manually create a symlink
-mkdir -p $PKG/usr/bin
-(cd $PKG/usr/bin ; ln -s /opt/openMSX-Catapult/bin/catapult . )
-
-# Install an icon and a desktop entry
-install -m 0644 -D $PKG/opt/openMSX-Catapult/resources/icons/catapult.xpm \
+install -m 0644 -D $PKG/usr/share/openmsx-catapult/resources/icons/catapult.xpm \
$PKG/usr/share/pixmaps/catapult.xpm
mkdir -p $PKG/usr/share/applications
sed \
-e "s|%INSTALL_BASE%/bin/.*|catapult|" \
-e "s|%INSTALL_BASE%/resources/.*|catapult|" \
- -e "s|%INSTALL_BASE%/doc|/opt/openMSX-Catapult/doc|" \
+ -e "s|%INSTALL_BASE%/doc|/usr/doc/openmsx-catapult-$VERSION|" \
desktop/openMSX-Catapult.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
diff --git a/games/openmsx-catapult/openmsx-catapult.info b/games/openmsx-catapult/openmsx-catapult.info
index d1bf93c38e..0379a1e5d0 100644
--- a/games/openmsx-catapult/openmsx-catapult.info
+++ b/games/openmsx-catapult/openmsx-catapult.info
@@ -1,10 +1,10 @@
PRGNAM="openmsx-catapult"
-VERSION="0.10.1"
+VERSION="0.11.0"
HOMEPAGE="http://openmsx.sourceforge.net/"
-DOWNLOAD="http://downloads.sourceforge.net/openmsx/openmsx-catapult-0.10.1.tar.gz"
-MD5SUM="409217b645bb9d0d7ac3314127530231"
+DOWNLOAD="http://downloads.sourceforge.net/openmsx/openmsx-catapult-0.11.0.tar.gz"
+MD5SUM="f112f679923f13a2e548a647b593c763"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="openmsx wxPython"
-MAINTAINER="Erwin van Zanten"
-EMAIL="e.van.zanten.evz@gmail.com"
+MAINTAINER="Philip van der Hoeven"
+EMAIL="philip@vd-hoeven.nl"