diff options
author | Dugan Chen <thedoogster [t] gmail [dot] com> | 2018-04-05 16:12:20 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-04-07 08:13:11 +0700 |
commit | f37d3c73993edd40d3da1b4cc5f6b577c95af628 (patch) | |
tree | 68928914b504d56d2620f219774303f76a9b5492 /games/nestopia/nestopia.SlackBuild | |
parent | 540ae9e733a4fab597a9b020bbd97ed97b4d04ba (diff) | |
download | slackbuilds-f37d3c73993edd40d3da1b4cc5f6b577c95af628.tar.gz |
games/nestopia: Add libretro core build.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games/nestopia/nestopia.SlackBuild')
-rw-r--r-- | games/nestopia/nestopia.SlackBuild | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/games/nestopia/nestopia.SlackBuild b/games/nestopia/nestopia.SlackBuild index 9b148e1052..97acd4c796 100644 --- a/games/nestopia/nestopia.SlackBuild +++ b/games/nestopia/nestopia.SlackBuild @@ -5,8 +5,9 @@ # Written by Dugan Chen (thedoogster@gmail.com) PRGNAM=nestopia +LIBNAM=${PRGNAM}_libretro VERSION=${VERSION:-1.48} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -22,8 +23,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O3 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O3 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O3 -march=i686 -mtune=i686" @@ -67,8 +68,16 @@ cd build make install DESTDIR=$PKG cd .. +make -C libretro + +install -Dm0644 libretro/$LIBNAM.so \ + $PKG/usr/lib${LIBDIRSUFFIX}/libretro/$LIBNAM.so +install -Dm0644 $CWD/$LIBNAM.info \ + $PKG/usr/lib${LIBDIRSUFFIX}/libretro/info/$LIBNAM.info + mkdir -p $PKG/usr/doc mv $PKG/usr/share/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION +rmdir $PKG/usr/share/doc 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 |