summaryrefslogtreecommitdiff
path: root/games/openmsx-catapult/openmsx-catapult.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/openmsx-catapult/openmsx-catapult.SlackBuild')
-rw-r--r--games/openmsx-catapult/openmsx-catapult.SlackBuild23
1 files changed, 13 insertions, 10 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