summaryrefslogtreecommitdiff
path: root/games/nestopia/nestopia.SlackBuild
diff options
context:
space:
mode:
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