All,<br><br>In trying to build a viable SlackBuild for dosemu, I&#39;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&#39;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&#39;ve done follows:<br><br>#!/bin/sh<br># Slackware build script for dosemu
<br><br># Copyright 2006 Yalla-One &lt;<a href="mailto:yallaone@gmail.com">yallaone@gmail.com</a>&gt;<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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# needed for dosemu&#39;s Makefile<br><br># Set compiler flags<br><br>if [ &quot;$ARCH&quot; = &quot;i486&quot; ]; then
<br>&nbsp; SLKCFLAGS=&quot;-O2 -march=i486 -mtune=i686&quot;<br>elif [ &quot;$ARCH&quot; = &quot;i686&quot; ]; then<br>&nbsp; SLKCFLAGS=&quot;-O2 -march=i686 -mtune=i686&quot;<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=&quot;$SLKCFLAGS&quot; \<br>CXXFLAGS=&quot;$SLKCFLAGS&quot; \<br><br>./configure \<br>&nbsp; --prefix=/usr \<br>&nbsp; --sysconfdir=/etc/dosemu \
<br>&nbsp; --with-syshdimagedir=/usr/share/dosemu \<br>&nbsp; --disable-debug \<br>&nbsp; --mandir=/usr/man \<br>&nbsp; --program-prefix=&quot;&quot; \<br>&nbsp; --program-suffix=&quot;&quot; \<br>&nbsp; $ARCH-slackware-linux \<br>&nbsp; || exit 1<br><br>make || exit 1
<br>make install DESTDIR=$PKG || exit 1<br><br>( cd $PKG<br>&nbsp; find . | xargs file | grep &quot;executable&quot; | grep ELF | cut -f 1 -d : | xargs <br>strip --strip-unneeded 2&gt; /dev/null<br>&nbsp; find . | xargs file | grep &quot;shared object&quot; | grep ELF | cut -f 1 -d : | 
<br>xargs strip --strip-unneeded 2&gt; /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 &gt; $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 &gt; $PKG/install/slack-desc<br><br>cd $PKG<br>makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
<br><br><br>