summaryrefslogtreecommitdiff
path: root/system/dosemu/dosemu.SlackBuild
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja@gmail.com>2014-06-01 11:27:39 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-06-01 11:27:39 +0700
commit61f3a6a84299a1521e767400d172e86f03a3cb34 (patch)
tree5d2da517c20c6f60778c7a227d8f59ee8f256a9f /system/dosemu/dosemu.SlackBuild
parentbd10b45f3dd388ff1ea8f2db6a29790a01722cc6 (diff)
downloadslackbuilds-61f3a6a84299a1521e767400d172e86f03a3cb34.tar.gz
system/dosemu: Script cleanup + new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/dosemu/dosemu.SlackBuild')
-rw-r--r--system/dosemu/dosemu.SlackBuild17
1 files changed, 6 insertions, 11 deletions
diff --git a/system/dosemu/dosemu.SlackBuild b/system/dosemu/dosemu.SlackBuild
index de2d660d74..58b842b584 100644
--- a/system/dosemu/dosemu.SlackBuild
+++ b/system/dosemu/dosemu.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for dosemu
# Copyright 2007 Martin Lefebvre <dadexter@sekurity.com>
+# Copyright 2014 Larry Hajali <larryhaja[at]gmail[dot]com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +25,7 @@
PRGNAM=dosemu
VERSION=${VERSION:-20130804_35054ba}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -40,10 +41,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-# This script builds dosemu without X support by default.
-# To enable X, run the build script as: WITH_X=yes ./dosemu.SlackBuild
-WITH_X=${WITH_X:-no}
-
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
@@ -74,14 +71,13 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--sysconfdir=/etc/dosemu \
- --localstatedir=/var \
--libdir=/usr/lib${LIBDIRSUFFIX} \
- --with-x="$WITH_X" \
+ --with-x \
--with-svgalib \
+ --with-docdir=/usr/doc/$PRGNAM-$VERSION \
--with-fdtarball=$CWD/dosemu-freedos-1.0-bin.tgz
make
@@ -93,10 +89,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-mkdir -p $PKG/usr/doc
-mv $PKG/usr/share/doc/dosemu $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-rmdir $PKG/usr/share/doc
( cd $PKG/etc/dosemu
mv dosemu.conf dosemu.conf.new
@@ -104,6 +97,8 @@ rmdir $PKG/usr/share/doc
mv global.conf global.conf.new
)
+find $PKG -type d ! -perm 755 -exec chmod 0755 '{}' \;
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh