summaryrefslogtreecommitdiffstats
path: root/games/mrboom/mrboom.SlackBuild
diff options
context:
space:
mode:
author Thibaut Notteboom <thibaut.notteboom@gmail.com>2018-05-29 08:12:59 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2018-05-29 08:21:12 +0700
commit8afaec79e975183b6e570abbc9b423bb62cb8cc0 (patch)
treea81e12a832a947d5de0f540344c3b73e765e9c4b /games/mrboom/mrboom.SlackBuild
parent376d8827f60f46559319e5a17576924c06142efb (diff)
downloadslackbuilds-8afaec79e975183b6e570abbc9b423bb62cb8cc0.tar.gz
slackbuilds-8afaec79e975183b6e570abbc9b423bb62cb8cc0.tar.xz
games/mrboom: Updated for version 4.5.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/mrboom/mrboom.SlackBuild')
-rw-r--r--games/mrboom/mrboom.SlackBuild27
1 files changed, 18 insertions, 9 deletions
diff --git a/games/mrboom/mrboom.SlackBuild b/games/mrboom/mrboom.SlackBuild
index 2fcea6c00d..682b6e04f6 100644
--- a/games/mrboom/mrboom.SlackBuild
+++ b/games/mrboom/mrboom.SlackBuild
@@ -23,11 +23,12 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=mrboom
-VERSION=${VERSION:-4.4}
+VERSION=${VERSION:-4.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
SRCNAM=mrboom-libretro
+LIBNAM=mrboom_libretro
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -71,21 +72,29 @@ 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 {} \;
-make mrboom LIBSDL2=1
+if pkg-config --exists sdl2; then
+ make mrboom LIBSDL2=1
-mkdir -p $PKG/usr/games $PKG/usr/man/man6 $PKG/usr/share/applications $PKG/usr/share/pixmaps
+ mkdir -p $PKG/usr/games $PKG/usr/man/man6 $PKG/usr/share/applications $PKG/usr/share/pixmaps
-make install PREFIX=/usr BINDIR=games DESTDIR=$PKG
+ make install PREFIX=/usr BINDIR=games DESTDIR=$PKG
-install -m 0644 Assets/$PRGNAM.desktop $PKG/usr/share/applications
-install -m 0644 $CWD/mrboom.svg $PKG/usr/share/pixmaps
+ install -m 0644 Assets/$PRGNAM.desktop $PKG/usr/share/applications
+ install -m 0644 $CWD/mrboom.svg $PKG/usr/share/pixmaps
+
+ find $PKG/usr/man -type f -exec gzip -9 {} \;
+ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+fi
+
+make clean
+make
+
+install -D -m 0644 $LIBNAM.so $PKG/usr/lib${LIBDIRSUFFIX}/libretro/$LIBNAM.so
+install -D -m 0644 $CWD/$LIBNAM.info $PKG/usr/lib${LIBDIRSUFFIX}/libretro/info/$LIBNAM.info
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
-find $PKG/usr/man -type f -exec gzip -9 {} \;
-for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
LICENSE README.md \