games/advancemame: Updated for version 0.106.0

This commit is contained in:
seb 2010-05-13 00:25:57 +02:00 committed by David Somero
parent 46576ebbcc
commit 7cd8f3e6d9
2 changed files with 19 additions and 8 deletions

View file

@ -21,8 +21,13 @@ set -e
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi
rm -rf $PKG
@ -42,16 +47,18 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--bindir=/usr/games \
--mandir=/usr/man
--mandir=/usr/man \
--build=$ARCH-slackware-linux
make
/usr/bin/ginstall -d -m 755 $PKG/usr/games
/usr/bin/ginstall -d -m 755 $PKG/usr/share/advance
/usr/bin/ginstall -d -m 755 $PKG/usr/doc/advance-$VERSION
/usr/bin/ginstall -d -m 755 $PKG/usr/doc/$PRGNAM-$VERSION
/usr/bin/ginstall -d -m 755 $PKG/usr/man/man1
/usr/bin/ginstall -d -m 755 $PKG/usr/share/advance/{rom,sample,artwork,image,crc}
/usr/bin/ginstall -m 755 obj/mame/linux/blend/advmame $PKG/usr/games
@ -62,13 +69,15 @@ make
/usr/bin/ginstall -m 755 obj/j/linux/blend/advj $PKG/usr/games
/usr/bin/ginstall -m 755 obj/m/linux/blend/advm $PKG/usr/games
/usr/bin/ginstall -m 644 ./support/*.dat $PKG/usr/share/advance
/usr/bin/ginstall -m 644 ./doc/{*.html,*.txt} $PKG/usr/doc/advance-$VERSION
/usr/bin/ginstall -m 644 $DOC $PKG/usr/doc/advance-$VERSION
/usr/bin/ginstall -m 644 ./doc/{*.html,*.txt} $PKG/usr/doc/$PRGNAM-$VERSION
/usr/bin/ginstall -m 644 $DOC $PKG/usr/doc/$PRGNAM-$VERSION
/usr/bin/ginstall -m 644 ./doc/*.1 $PKG/usr/man/man1
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : |xargs strip --strip-unneeded 2> /dev/null || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : |xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null
)
( cd $PKG/usr/man
@ -80,4 +89,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View file

@ -1,8 +1,10 @@
PRGNAM="advancemame"
VERSION="0.106.0"
HOMEPAGE="http://advancemame.sourceforge.net"
DOWNLOAD="http://prdownloads.sourceforge.net/advancemame/advancemame-0.106.0.tar.gz"
DOWNLOAD="http://downloads.sourceforge.net/advancemame/advancemame-0.106.0.tar.gz"
DOWNLOAD_x86_64=""
MD5SUM="aa097a4a9046124e17aa83a215e454ea"
MD5SUM_x86_64=""
MAINTAINER="seb"
EMAIL="sebastien.serre33@laposte.net"
APPROVED="David Somero"