aboutsummaryrefslogtreecommitdiff
path: root/games/hatari/hatari.SlackBuild
diff options
context:
space:
mode:
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 5f191c4f3573c..3c401f2d2a4e8 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 )