summaryrefslogtreecommitdiff
path: root/games/nestopia/nestopia.SlackBuild
diff options
context:
space:
mode:
authorDugan Chen <thedoogster [at] gmail [dot] com>2013-01-03 16:55:03 +0100
committerdsomero <xgizzmo@slackbuilds.org>2013-01-09 18:52:19 -0500
commit53f15c610eb5d2ad4e4164371c9e8a234fdafbef (patch)
tree92b989f4b3acfd645b149ffba5f8762658563307 /games/nestopia/nestopia.SlackBuild
parent7b158aff13a52ad057a5eec70b721b5a544edc26 (diff)
downloadslackbuilds-53f15c610eb5d2ad4e4164371c9e8a234fdafbef.tar.gz
games/nestopia: Updated for version 1.4.3.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'games/nestopia/nestopia.SlackBuild')
-rw-r--r--games/nestopia/nestopia.SlackBuild19
1 files changed, 9 insertions, 10 deletions
diff --git a/games/nestopia/nestopia.SlackBuild b/games/nestopia/nestopia.SlackBuild
index c993882c79..d10c25ab45 100644
--- a/games/nestopia/nestopia.SlackBuild
+++ b/games/nestopia/nestopia.SlackBuild
@@ -5,7 +5,7 @@
# Written by Dugan Chen (thedoogster@gmail.com)
PRGNAM=nestopia
-VERSION=${VERSION:-20120918_334cc05}
+VERSION=${VERSION:-1.43}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -36,14 +36,14 @@ else
LIBDIRSUFFIX=""
fi
-set -e
+set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
+tar xvf $CWD/$PRGNAM-$VERSION.t?z*
cd $PRGNAM-$VERSION
chown -R root:root .
@@ -53,20 +53,19 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-sed -i -e "s|/local||" -e "s|-O3 -g3|${SLKCFLAGS}|" Makefile
-
-make -j1
-
-install -m0755 -D $PRGNAM $PKG/usr/bin/$PRGNAM
-install -m0644 -D NstDatabase.xml $PKG/usr/share/$PRGNAM/NstDatabase.xml
+patch < $CWD/Makefile.patch
+sed -i "s/-O3 -g3/-g3 ${SLKCFLAGS}/g" Makefile
+make PREFIX=/usr
+make install PREFIX=$PKG/usr
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 changelog.* readme.html doc/* \
+ COPYING README README.linux 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