games/hatari: Updated for version 1.4.0.

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
B. Watson 2011-06-18 00:08:40 -05:00 committed by Robby Workman
parent 3f1eef58da
commit cc85efa731
2 changed files with 21 additions and 19 deletions

View file

@ -4,7 +4,7 @@
# Written by B. Watson (yalhcru@gmail.com)
PRGNAM=hatari
VERSION=${VERSION-1.1.0}
VERSION=${VERSION-1.4.0}
ARCH=${ARCH-i486}
BUILD=${BUILD-1}
TAG=${TAG-_SBo}
@ -16,39 +16,41 @@ OUTPUT=${OUTPUT:-/tmp}
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
set -e
rm -rf $PKG $TMP/$PRGNAM-$VERSION
mkdir -p $PKG $PKG/install $PKG/etc/$PRGNAM
mkdir -p $PKG $PKG/install $PKG/etc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION
# configure script is really a wrapper for cmake, doesn't support
# --libdir, --mandir, --docdir. We'll just move everything where it
# goes after the 'make install'. (If there were shared libs to deal
# with, this likely wouldn't be good enough)
cd $TMP
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--sysconfdir=/etc/$PRGNAM \
--build=$ARCH-slackware-linux
./configure --prefix=/usr
make
make install DESTDIR=$PKG
make install/strip DESTDIR=$PKG
# amazingly, the man page is already gzipped and the binary
# is already stripped!
# amazingly, the man pages are already gzipped (but in the wrong place)
mv $PKG/usr/share/man $PKG/usr/man
# this doc doesn't get installed in v1.1.0:
# Also, the docs are in the wrong place:
mv $PKG/usr/share/doc/$PRGNAM/* $PKG/usr/doc/$PRGNAM-$VERSION
rm -rf $PKG/usr/share/doc
# these docs don't get installed for some reason:
cat tools/hmsa/readme-hmsa.txt > $PKG/usr/doc/$PRGNAM-$VERSION/readme-hmsa.txt
cat readme.txt > $PKG/usr/doc/$PRGNAM-$VERSION/readme.txt
cat gpl.txt > $PKG/usr/doc/$PRGNAM-$VERSION/gpl.txt
( cd $PKG/usr/share/$PRGNAM && mv tos.img emutos.img && ln -s emutos.img tos.img )

View file

@ -1,8 +1,8 @@
PRGNAM="hatari"
VERSION="1.1.0"
VERSION="1.4.0"
HOMEPAGE="http://hatari.berlios.de/"
DOWNLOAD="http://download.berlios.de/hatari/hatari-1.1.0.tar.bz2"
MD5SUM="e782830f4d82dccb017159b302fd8b62"
DOWNLOAD="http://download.berlios.de/hatari/hatari-1.4.0.tar.bz2"
MD5SUM="2f30e5c9e146ee92e3f2f5ae1cef3673"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="B. Watson"