aboutsummaryrefslogtreecommitdiff
path: root/games/RetroArch/RetroArch.SlackBuild
diff options
context:
space:
mode:
authorHunter Sezen <ovariegata@yahoo.com>2017-08-18 12:09:51 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-08-19 07:10:47 +0700
commit9df0bf841d1a68790e5fe9606d2cdaee7e1cdace (patch)
treebba1b5ca8ba107d4d822e33c92a91d2c475f08f4 /games/RetroArch/RetroArch.SlackBuild
parent0f615094d106acfe5ecb6f3fce5d924cc09e5cf7 (diff)
games/RetroArch: Updated for version 1.6.7.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games/RetroArch/RetroArch.SlackBuild')
-rw-r--r--games/RetroArch/RetroArch.SlackBuild25
1 files changed, 13 insertions, 12 deletions
diff --git a/games/RetroArch/RetroArch.SlackBuild b/games/RetroArch/RetroArch.SlackBuild
index 3de7ec8c25a1..6a0892c3b869 100644
--- a/games/RetroArch/RetroArch.SlackBuild
+++ b/games/RetroArch/RetroArch.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=RetroArch
-VERSION=${VERSION:-1.6.4}
+VERSION=${VERSION:-1.6.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -54,14 +54,6 @@ else
LIBDIRSUFFIX=""
fi
-DEBUG=${DEBUG:-0}
-if [ "$DEBUG" = 1 ]; then
- RELEASE=debug
- SLKCFLAGS="$(printf %s "$SLKCFLAGS" | sed 's/-O2/-O0 -g/')"
-else
- RELEASE=release
-fi
-
set -eu
rm -rf $PKG
@@ -77,6 +69,15 @@ 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 {} \;
+if [ "${DEBUG:-0}" = 1 ]; then
+ DEBUG=1
+ RELEASE=debug
+ SLKCFLAGS="$(printf %s "$SLKCFLAGS" | sed 's/-O2/-O0 -g/')"
+else
+ DEBUG=0
+ RELEASE=release
+fi
+
if [ "${PYTHON:-0}" = 1 ]; then
python='--enable-python'
# Needed for python3 in the 14.1 SBo branch.
@@ -115,7 +116,8 @@ sed -e "s|# audio_filter_dir =|audio_filter_dir = /usr/lib${LIBDIRSUFFIX}/retroa
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
-./configure --prefix=/usr \
+./configure \
+ --prefix=/usr \
--with-bin_dir=/usr/games \
--with-man_dir=/usr/man \
--with-assets_dir=/usr/share/games \
@@ -146,10 +148,9 @@ done
mv $PKG/etc/retroarch.cfg $PKG/etc/retroarch.cfg.new
-if [ "$DEBUG" = 0 ]; then
+[ "$DEBUG" = 0 ] && \
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
-fi
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