diff options
author | Dugan Chen <thedoogster [t] gmail [dot] com> | 2017-12-17 18:35:37 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-12-17 18:35:37 +0700 |
commit | fe223ce487c466de0b99b61cf49bb93b1bd02ca9 (patch) | |
tree | 363994949cbd82b710212d3d30bd3855e08d430a /games/nestopia/nestopia.SlackBuild | |
parent | 900ae7465e6d72914088a8715fffb90d73a37e9c (diff) | |
download | slackbuilds-fe223ce487c466de0b99b61cf49bb93b1bd02ca9.tar.gz |
games/nestopia: Updated for version 1.48.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/nestopia/nestopia.SlackBuild')
-rw-r--r-- | games/nestopia/nestopia.SlackBuild | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/games/nestopia/nestopia.SlackBuild b/games/nestopia/nestopia.SlackBuild index f45e53f233..9b148e1052 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 |