diff options
author | B. Watson <yalhcru@gmail.com> | 2016-07-30 18:06:51 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-08-13 07:22:55 +0700 |
commit | a02ac510ed45db0e96aca07c89f79998fbfc7c30 (patch) | |
tree | c268d977b561b3e1fce7cd370d10397a463ed735 | |
parent | cee20e46ac6b1d84c3078da6c6d60a90466b06d1 (diff) |
games/hatari: Updated for version 1.9.0.
-rw-r--r-- | games/hatari/hatari.SlackBuild | 35 | ||||
-rw-r--r-- | games/hatari/hatari.info | 6 |
2 files changed, 30 insertions, 11 deletions
diff --git a/games/hatari/hatari.SlackBuild b/games/hatari/hatari.SlackBuild index e857f703385ff..56895bf6fe972 100644 --- a/games/hatari/hatari.SlackBuild +++ b/games/hatari/hatari.SlackBuild @@ -6,6 +6,13 @@ # Licensed under the WTFPL. See http://sam.zoy.org/wtfpl/ for details. +# 20160730 bkw: +# - updated for v1.9.0. +# - install some missing docs, including the French man page. +# - get rid of empty & useless /etc/hatari/ in package. strace +# shows that hatari never even looks there for a conf file, +# it looks for /etc/hatari.cfg (which we don't ship). + # 20141029 bkw: add missing : in VERSION BUILD TAG assignments # 20140825 bkw: @@ -17,13 +24,13 @@ # - add mime type and auto-associate ST disk images and executables. PRGNAM=hatari -VERSION=${VERSION:-1.8.0} +VERSION=${VERSION:-1.9.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -34,8 +41,8 @@ TMP=${TMP-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" elif [ "$ARCH" = "x86_64" ]; then @@ -47,7 +54,6 @@ fi set -e rm -rf $PKG $TMP/$PRGNAM-$VERSION -mkdir -p $PKG $PKG/etc/$PRGNAM cd $TMP tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 @@ -60,7 +66,7 @@ sed -i \ -e "s,share/doc/$PRGNAM,doc/$PRGNAM-$VERSION," \ CMakeLists.txt -# hard-code the doc path in the UI (we don't use /usr/share/doc/hatari) +# Hard-code the doc path in the UI (we don't use /usr/share/doc/hatari) sed -i \ -e "/path *= *path *+/s,=.*,= \"/usr/doc/$PRGNAM-$VERSION/\"," \ python-ui/uihelpers.py @@ -73,8 +79,21 @@ make install/strip DESTDIR=$PKG DOCDIR=$PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $DOCDIR/$PRGNAM.SlackBuild -# these docs don't get installed for some reason: -cp tools/hmsa/readme-hmsa.txt readme.txt gpl.txt $DOCDIR +# These docs don't get installed for some reason: +cp tools/hmsa/readme-hmsa.txt readme.txt gpl.txt \ + doc/changelog.txt doc/coding.txt doc/toc.js doc/video-recording.txt \ + $DOCDIR + +# The UI has its own docs: +UIDOCDIR=$DOCDIR/${PRGNAM}ui +mkdir -p $UIDOCDIR +for i in README TODO release-notes.txt; do + ln -s ../../../share/$PRGNAM/${PRGNAM}ui/$i $UIDOCDIR/$i +done + +# Someone might find the French man page useful: +mkdir -p $PKG/usr/man/fr/man1 +gzip -9c < doc/fr/$PRGNAM.1 > $PKG/usr/man/fr/man1/$PRGNAM.1.gz # Replace .desktop with modified one, auto-associates ST disks/executables. cat $CWD/${PRGNAM}ui.desktop > $PKG/usr/share/applications/${PRGNAM}ui.desktop diff --git a/games/hatari/hatari.info b/games/hatari/hatari.info index c3708e1e317f6..fe2061284cc52 100644 --- a/games/hatari/hatari.info +++ b/games/hatari/hatari.info @@ -1,8 +1,8 @@ PRGNAM="hatari" -VERSION="1.8.0" +VERSION="1.9.0" HOMEPAGE="http://hatari.tuxfamily.org/" -DOWNLOAD="http://download.tuxfamily.org/hatari/1.8.0/hatari-1.8.0.tar.bz2" -MD5SUM="f78cf673debbbe2d523415ab605550e1" +DOWNLOAD="http://download.tuxfamily.org/hatari/1.9.0/hatari-1.9.0.tar.bz2" +MD5SUM="24e54b19958943dbe5ac1b1f6f32b284" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |