[Slackbuilds-users] dosemu.SlackBuild trouble - widening the audience

Yalla One yallaone at gmail.com
Wed Feb 7 21:37:04 UTC 2007


All,

In trying to build a viable SlackBuild for dosemu, I've run into a few
problems. The latest developer version which dosemu.org encourages is 1.3.4
and compiles well. The latest stable version (which is ancient) is 1.2.2 and

doesn't even compile.

The problem is post-installation, and probably has more to do with the
dosemu
install system than with my slackbuild, but the net result is anyway that
the
final dosemu installation is useless.

Before anyone with a helping hand points towards dosbox, my impression is
that
dosbox is geared towards gaming, while dosemu is more for ancient dos
applications for production use, and also comes with good printing support
(which is required by most non-gaming DOS applications).

In order for the slackbuild to work you need both dosemu v1.3.4 which is
located here:
http://prdownloads.sourceforge.net/dosemu/dosemu-1.3.4.tgz?download

and the dosemu-freedos package which is located here:
http://prdownloads.sourceforge.net/dosemu/dosemu-freedos-b9r5a-bin.tgz?download
(needs to be renamed dosemu-freedos-bin.tgz)

The script I've done follows:

#!/bin/sh
# Slackware build script for dosemu

# Copyright 2006 Yalla-One <yallaone at gmail.com>
# Modified by the SlackBuilds.org project

PRGNAM=dosemu
VERSION=1.3.4
ARCH=${ARCH:-i686}
BUILD=2
TAG=_SBo
CWD=`pwd`
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=/tmp
PATH=$PATH:/usr/X11R6/bin       # needed for dosemu's Makefile

# Set compiler flags

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
fi

rm -rf $PKG
mkdir -p $TMP $PKG
cd $TMP
rm -rf $PRGNAM-$VERSION
tar -xzvf $CWD/$PRGNAM-$VERSION.tgz || exit 1
cd $PRGNAM-$VERSION
cp $CWD/dosemu-freedos-bin.tgz .


chown -R root.root .
find . -perm 777 -exec chmod 755 {} \;
find . -perm 775 -exec chmod 755 {} \;
find . -perm 666 -exec chmod 644 {} \;
find . -perm 664 -exec chmod 644 {} \;

CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \

./configure \
  --prefix=/usr \
  --sysconfdir=/etc/dosemu \
  --with-syshdimagedir=/usr/share/dosemu \
  --disable-debug \
  --mandir=/usr/man \
  --program-prefix="" \
  --program-suffix="" \
  $ARCH-slackware-linux \
  || exit 1

make || exit 1
make install DESTDIR=$PKG || exit 1

( cd $PKG
  find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs

strip --strip-unneeded 2> /dev/null
  find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : |
xargs strip --strip-unneeded 2> /dev/null
)

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
mv $PKG/usr/share/doc/dosemu/* $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYING ChangeLog INSTALL NEWS README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild >
$PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
rm -rf $PKG/usr/share/doc

cp $TMP/$PRGNAM-$VERSION/etc/$PRGNAM.xpm $PKG/usr/share/pixmaps/

chown -R root:bin $PKG/usr/bin
mv $PKG/etc/dosemu/dosemu.conf $PKG/etc/dosemu/dosemu.conf.new
mv $PKG/etc/dosemu/global.conf $PKG/etc/dosemu/global.conf.new
mv $PKG/etc/dosemu/dosemu.users $PKG/etc/dosemu/dosemu.users.new

#mkdir -p ${PKG}/usr/share/dosemu/
#cp $CWD/dosemu-freedos-b9r4-bin.tgz
${PKG}/usr/share/dosemu/dosemu-freedos-bin.tgz
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

cd $PKG
makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20070207/c8645dfa/attachment-0002.html 


More information about the Slackbuilds-users mailing list