From fe223ce487c466de0b99b61cf49bb93b1bd02ca9 Mon Sep 17 00:00:00 2001 From: Dugan Chen Date: Sun, 17 Dec 2017 18:35:37 +0700 Subject: games/nestopia: Updated for version 1.48. Signed-off-by: Willy Sudiarto Raharjo --- games/nestopia/nestopia.SlackBuild | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) (limited to 'games/nestopia/nestopia.SlackBuild') diff --git a/games/nestopia/nestopia.SlackBuild b/games/nestopia/nestopia.SlackBuild index f45e53f233346..9b148e105275c 100644 --- a/games/nestopia/nestopia.SlackBuild +++ b/games/nestopia/nestopia.SlackBuild @@ -5,13 +5,13 @@ # Written by Dugan Chen (thedoogster@gmail.com) PRGNAM=nestopia -VERSION=${VERSION:-1.46.2} +VERSION=${VERSION:-1.48} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -53,17 +53,26 @@ 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 {} \; -patch < $CWD/Makefile.patch -sed -i "s/-O3 -g3/-g3 ${SLKCFLAGS}/g" Makefile -make -j1 PREFIX=/usr -make install PREFIX=$PKG/usr +patch --verbose < $CWD/CMakeLists.txt.patch + +mkdir -p build +cd build + cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release .. \ + -DENABLE_DOC=ON + make + make install DESTDIR=$PKG +cd .. + +mkdir -p $PKG/usr/doc +mv $PKG/usr/share/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION 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 -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a COPYING README.md README.unix changelog.txt readme.html $PKG/usr/doc/$PRGNAM-$VERSION -cp -ar doc/ $PKG/usr/doc/$PRGNAM-$VERSION/api/ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install -- cgit v1.2.3