diff options
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 9b148e105275c..97acd4c796dd6 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 |