games/zsnes: Updated for version 1.51b

This commit is contained in:
Antonio Hernández Blas 2010-05-13 00:27:40 +02:00 committed by Robby Workman
parent 14ccf40e41
commit 25044f2b81
5 changed files with 31 additions and 28 deletions

View File

@ -1,4 +1,3 @@
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications
fi

View File

@ -22,13 +22,14 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=zsnes
VERSION=1.51
ZSNESSRC=151src
ZSNESDIR=_1_51
VERSION=1.51b
ARCH=${ARCH:-i486}
BUILD=${BUILD:-4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
ZSNESSRC="$(echo $VERSION | tr -d .)src"
ZSNESDIR="_$(echo $VERSION | tr . _)"
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@ -77,28 +78,29 @@ make
make install DESTDIR=$PKG
( 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
)
if [ -d $PKG/usr/man ]; then
( cd $PKG/usr/man
( cd $PKG/usr/man || exit 1
find . -type f -exec gzip -9 {} \;
for i in $(find . -type l) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
)
fi
)
# Add a .desktop file and icon for good menu integration
mkdir -p $PKG/usr/share/{applications,pixmaps}
install -m 0644 $CWD/zsnes.desktop $PKG/usr/share/applications/zsnes.desktop
install -m 0644 $CWD/zsnes.png $PKG/usr/share/pixmaps/zsnes.png
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a docs/* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
# Add a .desktop file and icon for good menu integration
install -D -m 0644 $CWD/zsnes.desktop $PKG/usr/share/applications/zsnes.desktop
install -D -m 0644 $CWD/zsnes.png $PKG/usr/share/pixmaps/zsnes.png
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
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

@ -2,7 +2,7 @@
Name=ZSNES
Comment=SNES Emulator
Exec=zsnes
Icon=/usr/share/pixmaps/zsnes.png
Icon=zsnes
Terminal=false
Type=Application
Categories=GNOME;GTK;Qt;KDE;Game;

View File

@ -1,8 +1,10 @@
PRGNAM="zsnes"
VERSION="1.51"
VERSION="1.51b"
HOMEPAGE="http://www.zsnes.com"
DOWNLOAD="http://prdownloads.sourceforge.net/zsnes/zsnes151src.tar.bz2"
MD5SUM="7071186bf80632ae88a153239498d8c9"
DOWNLOAD="http://zsnes.sf.net/zsnes151bsrc.tar.bz2"
MD5SUM="904ee432f378609176ed30c01cf6ea28"
DOWNLOAD_x86_64="UNSUPPORTED"
MD5SUM_x86_64=""
MAINTAINER="Antonio Hernández Blas"
EMAIL="hba.nihilismus@gmail.com"
APPROVED="David Somero,rworkman"
APPROVED="rworkman"