diff options
Diffstat (limited to 'games/RetroArch/RetroArch.SlackBuild')
-rw-r--r-- | games/RetroArch/RetroArch.SlackBuild | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/games/RetroArch/RetroArch.SlackBuild b/games/RetroArch/RetroArch.SlackBuild index e7d842eeef..cb58796421 100644 --- a/games/RetroArch/RetroArch.SlackBuild +++ b/games/RetroArch/RetroArch.SlackBuild @@ -1,9 +1,9 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for RetroArch # Copyright 2016-2019 Hunter Sezen California, USA -# Copyright 2020 ilmich < ardutu at gmail dot com > +# Copyright 2020-2023 ilmich < ardutu at gmail dot com > # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,11 +22,18 @@ # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# 20220621 ilmich: Updated to 1.10.3, removed python flags (no more upstream support), removed merged opengles patch +# 20220222 bkw: Modified by SlackBuilds.org: fix build on 15.0, +# by updating to v1.10.0 (old version won't build). + +cd $(dirname $0) ; CWD=$(pwd) PRGNAM=RetroArch -VERSION=${VERSION:-1.9.0} +VERSION=${VERSION:-1.15.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -36,7 +43,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -66,9 +77,9 @@ 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 \ + -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 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ lib= @@ -99,9 +110,6 @@ pkg-config --exists flac && lib="${lib} --disable-builtinflac" pkg-config --exists libsixel && lib="${lib} --enable-sixel" [ -d /usr/include/mbedtls ] && lib="${lib} --disable-builtinmbedtls" -[ -d /usr/include/miniupnpc ] && lib="${lib} --disable-builtinminiupnpc" - -[ "${PYTHON:-no}" != no ] && lib="${lib} --enable-python" [ "${MENU:-yes}" != yes ] && lib="${lib} --disable-menu" [ "${PULSE:-yes}" != yes ] && lib="${lib} --disable-pulse" @@ -133,11 +141,6 @@ sed -e "s|# audio_filter_dir =|audio_filter_dir = ${filter_dir}/audio|" \ # Fix qt5 support with 14.2. sed -i 's/-fPIC/-fPIC -std=c++11/' qb/qb.moc.sh -# Fix --enable-opengles and --enable-opengles3 -# https://github.com/libretro/RetroArch/pull/8749 -# https://github.com/libretro/RetroArch/commit/1a3f16ded122bf3928aeb9beb71b594bf24ce01a -patch -p1 < $CWD/gles.patch - # Set $lib to a portable array eval "set -- $lib" @@ -194,4 +197,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |