summaryrefslogtreecommitdiffstats
path: root/games/desmume/desmume.SlackBuild
diff options
context:
space:
mode:
author Larry Hajali2010-06-28 18:17:41 +0200
committer dsomero2010-06-28 18:17:41 +0200
commit479aeb2b3a042293245c5fd160812e2fe86def5a (patch)
tree80cb192d4a6136b6bb6ffb17b8deb32720280f9f /games/desmume/desmume.SlackBuild
parentfa5d9a0127895a6cc917a8bc20ea6bed29cd5e28 (diff)
downloadslackbuilds-479aeb2b3a042293245c5fd160812e2fe86def5a.tar.gz
games/desmume: Updated for version 0.9.6.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'games/desmume/desmume.SlackBuild')
-rw-r--r--games/desmume/desmume.SlackBuild18
1 files changed, 7 insertions, 11 deletions
diff --git a/games/desmume/desmume.SlackBuild b/games/desmume/desmume.SlackBuild
index b5804c8e65..bc6f2bbda0 100644
--- a/games/desmume/desmume.SlackBuild
+++ b/games/desmume/desmume.SlackBuild
@@ -3,16 +3,14 @@
# Written by Larry Hajali <larryhaja[at]gmail[dot]com>
PRGNAM=desmume
-VERSION=${VERSION:-0.9.5}
+VERSION=0.9.6
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -42,7 +40,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION-1.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@@ -52,7 +50,7 @@ find . \
-exec chmod 644 {} \;
# Fix end-of-line encoding.
-sed -i 's/\r//' AUTHORS ChangeLog
+sed -i 's/\r//' AUTHORS
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -62,23 +60,21 @@ CXXFLAGS="$SLKCFLAGS" \
--enable-osmesa \
--enable-gdb-stub \
--enable-wifi \
+ --enable-openal \
--with-x \
--build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
-find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-( cd $PKG/usr/man
- find . -type f -exec gzip -9 {} \;
- for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-)
+find $PKG/usr/man -type f -exec gzip -9 {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- AUTHORS ChangeLog COPYING INSTALL README README.LIN \
+ AUTHORS ChangeLog COPYING INSTALL README README.LIN {dsv,dsm}.txt \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild