diff options
Diffstat (limited to 'games/picodrive/picodrive.SlackBuild')
-rw-r--r-- | games/picodrive/picodrive.SlackBuild | 36 |
1 files changed, 13 insertions, 23 deletions
diff --git a/games/picodrive/picodrive.SlackBuild b/games/picodrive/picodrive.SlackBuild index 31fccf607b..f695da7c02 100644 --- a/games/picodrive/picodrive.SlackBuild +++ b/games/picodrive/picodrive.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for picodrive -# Copyright 2016-2018 Hunter Sezen California, USA +# Copyright 2016-2019 Hunter Sezen California, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,8 +23,9 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=picodrive +SRCNAM=PicoDrive LIBNAM=${PRGNAM}_libretro -VERSION=${VERSION:-2018.04.05_6ee3a0f} +VERSION=${VERSION:-1.93} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -41,30 +42,17 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -# requires patching the Makefile to properly use -# the default CFLAGS and CXXFLAGS are probably fine -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi +LIBDIRSUFFIX= +[ "$ARCH" = x86_64 ] && LIBDIRSUFFIX=64 set -eu rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.xz -cd $PRGNAM-$VERSION +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/${SRCNAM}_$VERSION.tar.gz +cd $SRCNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -86,12 +74,14 @@ make -f Makefile.libretro \ install -Dm0644 $LIBNAM.so \ $PKG/usr/lib${LIBDIRSUFFIX}/libretro/$LIBNAM.so -install -Dm0644 $CWD/$LIBNAM.info \ + +# https://raw.githubusercontent.com/libretro/libretro-super/92a64459d6e63eed7d79775f65242c5d47807e44/dist/info/picodrive_libretro.info +install -Dm0644 $CWD/$LIBNAM-info \ $PKG/usr/lib${LIBDIRSUFFIX}/libretro/info/$LIBNAM.info if [ $DEBUG = 0 ]; then - 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 -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 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION |