summaryrefslogtreecommitdiff
path: root/games/hatari/hatari.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2011-06-18 00:08:40 -0500
committerRobby Workman <rworkman@slackbuilds.org>2011-06-18 00:08:40 -0500
commitcc85efa73178588d3eb2801c84196bfc4dc2f1eb (patch)
treeec05dd6a93d1ee96f772f8eda82165bc60981a89 /games/hatari/hatari.SlackBuild
parent3f1eef58da90230ae617e5b105b17eaff7e832ce (diff)
downloadslackbuilds-cc85efa73178588d3eb2801c84196bfc4dc2f1eb.tar.gz
games/hatari: Updated for version 1.4.0.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'games/hatari/hatari.SlackBuild')
-rw-r--r--games/hatari/hatari.SlackBuild34
1 files changed, 18 insertions, 16 deletions
diff --git a/games/hatari/hatari.SlackBuild b/games/hatari/hatari.SlackBuild
index 5f191c4f35..3c401f2d2a 100644
--- a/games/hatari/hatari.SlackBuild
+++ b/games/hatari/hatari.SlackBuild
@@ -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 pages are already gzipped (but in the wrong place)
+mv $PKG/usr/share/man $PKG/usr/man
-# amazingly, the man page is already gzipped and the binary
-# is already stripped!
+# 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
-# this doc doesn't get installed in v1.1.0:
+# 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 )