All,<br><br>In trying to build a viable SlackBuild for dosemu, I've run into a few <br>problems. The latest developer version which <a href="http://dosemu.org">dosemu.org</a> encourages is 1.3.4 <br>and compiles well. The latest stable version (which is ancient) is
1.2.2 and <br>doesn't even compile.<br><br>The problem is post-installation, and probably has more to do with the dosemu <br>install system than with my slackbuild, but the net result is anyway that the <br>final dosemu installation is useless.
<br><br>Before anyone with a helping hand points towards dosbox, my impression is that <br>dosbox is geared towards gaming, while dosemu is more for ancient dos <br>applications for production use, and also comes with good printing support
<br>(which is required by most non-gaming DOS applications).<br><br>In order for the slackbuild to work you need both dosemu v1.3.4 which is <br>located here: <br><a href="http://prdownloads.sourceforge.net/dosemu/dosemu-1.3.4.tgz?download">
http://prdownloads.sourceforge.net/dosemu/dosemu-1.3.4.tgz?download</a><br><br>and the dosemu-freedos package which is located here:<br><a href="http://prdownloads.sourceforge.net/dosemu/dosemu-freedos-b9r5a-bin.tgz?download">
http://prdownloads.sourceforge.net/dosemu/dosemu-freedos-b9r5a-bin.tgz?download</a><br>(needs to be renamed dosemu-freedos-bin.tgz)<br><br>The script I've done follows:<br><br>#!/bin/sh<br># Slackware build script for dosemu
<br><br># Copyright 2006 Yalla-One <<a href="mailto:yallaone@gmail.com">yallaone@gmail.com</a>><br># Modified by the SlackBuilds.org project<br><br>PRGNAM=dosemu<br>VERSION=1.3.4<br>ARCH=${ARCH:-i686}<br>BUILD=2<br>
TAG=_SBo<br>CWD=`pwd`<br>TMP=${TMP:-/tmp/SBo}<br>PKG=$TMP/package-$PRGNAM<br>OUTPUT=/tmp<br>PATH=$PATH:/usr/X11R6/bin # needed for dosemu's Makefile<br><br># Set compiler flags<br><br>if [ "$ARCH" = "i486" ]; then
<br> SLKCFLAGS="-O2 -march=i486 -mtune=i686"<br>elif [ "$ARCH" = "i686" ]; then<br> SLKCFLAGS="-O2 -march=i686 -mtune=i686"<br>fi<br><br>rm -rf $PKG<br>mkdir -p $TMP $PKG<br>cd $TMP
<br>rm -rf $PRGNAM-$VERSION<br>tar -xzvf $CWD/$PRGNAM-$VERSION.tgz || exit 1<br>cd $PRGNAM-$VERSION<br>cp $CWD/dosemu-freedos-bin.tgz .<br><br><br>chown -R root.root .<br>find . -perm 777 -exec chmod 755 {} \;<br>find . -perm 775 -exec chmod 755 {} \;
<br>find . -perm 666 -exec chmod 644 {} \;<br>find . -perm 664 -exec chmod 644 {} \;<br><br>CFLAGS="$SLKCFLAGS" \<br>CXXFLAGS="$SLKCFLAGS" \<br><br>./configure \<br> --prefix=/usr \<br> --sysconfdir=/etc/dosemu \
<br> --with-syshdimagedir=/usr/share/dosemu \<br> --disable-debug \<br> --mandir=/usr/man \<br> --program-prefix="" \<br> --program-suffix="" \<br> $ARCH-slackware-linux \<br> || exit 1<br><br>make || exit 1
<br>make install DESTDIR=$PKG || exit 1<br><br>( cd $PKG<br> find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs <br>strip --strip-unneeded 2> /dev/null<br> find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : |
<br>xargs strip --strip-unneeded 2> /dev/null<br>)<br><br>mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION<br>mv $PKG/usr/share/doc/dosemu/* $PKG/usr/doc/$PRGNAM-$VERSION<br>cp -a COPYING ChangeLog INSTALL NEWS README $PKG/usr/doc/$PRGNAM-$VERSION
<br>cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild<br>rm -rf $PKG/usr/share/doc<br><br>cp $TMP/$PRGNAM-$VERSION/etc/$PRGNAM.xpm $PKG/usr/share/pixmaps/<br><br>chown -R root:bin $PKG/usr/bin
<br>mv $PKG/etc/dosemu/dosemu.conf $PKG/etc/dosemu/dosemu.conf.new<br>mv $PKG/etc/dosemu/global.conf $PKG/etc/dosemu/global.conf.new<br>mv $PKG/etc/dosemu/dosemu.users $PKG/etc/dosemu/dosemu.users.new<br><br>#mkdir -p ${PKG}/usr/share/dosemu/
<br>#cp $CWD/dosemu-freedos-b9r4-bin.tgz <br>${PKG}/usr/share/dosemu/dosemu-freedos-bin.tgz<br>mkdir -p $PKG/install<br>cat $CWD/slack-desc > $PKG/install/slack-desc<br><br>cd $PKG<br>makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
<br><br><br>