diff options
author | Ruoh-Shoei LIN <56530472+LinRs@users.noreply.github.com> | 2022-04-16 20:40:18 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-04-24 01:47:17 +0700 |
commit | a75bdfe498608c3dd9b3a5a053434cbf09303d3d (patch) | |
tree | 58d4c03ae9ac9db5d153f428b06499be1920808b /games/nestopia/nestopia.SlackBuild | |
parent | b6484732c39b72d23abcc42520d73190ba872cbf (diff) |
games/nestopia: Updated for version 1.51.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/nestopia/nestopia.SlackBuild')
-rw-r--r-- | games/nestopia/nestopia.SlackBuild | 47 |
1 files changed, 27 insertions, 20 deletions
diff --git a/games/nestopia/nestopia.SlackBuild b/games/nestopia/nestopia.SlackBuild index 9839bc469694f..f8c8b54df630d 100644 --- a/games/nestopia/nestopia.SlackBuild +++ b/games/nestopia/nestopia.SlackBuild @@ -3,13 +3,32 @@ # Slackware build script for Nestopia # Written by Dugan Chen (thedoogster@gmail.com) -# Editd by RuohShoei LIN +# Maintained by RuohShoei LIN + +# Copyright 2020-2022 RuohShoei LIN +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. cd $(dirname $0) ; CWD=$(pwd) PRGNAM=nestopia -LIBNAM=${PRGNAM}_libretro -VERSION=${VERSION:-1.50} +VERSION=${VERSION:-1.51.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -67,13 +86,6 @@ find -L . \ autoreconf -vif -# --enable-gui requires a newer GTK than what's in 14.2. -GTK=${GTK:-no} -case "$GTK" in - [yY]|[yY][eE][sS]) GTK="--enable-gui" ;; - *) GTK="--disable-gui" ;; -esac - CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -83,23 +95,18 @@ CXXFLAGS="$SLKCFLAGS" \ --localstatedir=/var \ --mandir=/usr/man \ --docdir=/usr/doc/$PRGNAM-$VERSION \ - --build=$ARCH-slackware-linux \ - --enable-doc \ - $GTK + --build=$ARCH-slackware-linux make make install DESTDIR=$PKG -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 - 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 COPYRIGHT \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |