diff options
Diffstat (limited to 'games/hatari/hatari.SlackBuild')
-rw-r--r-- | games/hatari/hatari.SlackBuild | 35 |
1 files changed, 27 insertions, 8 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 |