diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2013-11-16 10:28:58 +0100 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-11-16 13:58:35 -0600 |
commit | eb12ed494d5b592c354ad0fa70021c1c3b97ed92 (patch) | |
tree | d60bc2e726837bac58330108a8eca138463b3d22 /system/dosemu/dosemu.SlackBuild | |
parent | 10fde6e0d605177efed81aadb7d89c938346aab6 (diff) |
system/dosemu: Updated for version 20130804_35054ba.
Moved configurations in /etc/dosemu
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system/dosemu/dosemu.SlackBuild')
-rw-r--r-- | system/dosemu/dosemu.SlackBuild | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/system/dosemu/dosemu.SlackBuild b/system/dosemu/dosemu.SlackBuild index 6c439772fb57..e93b921c0b9c 100644 --- a/system/dosemu/dosemu.SlackBuild +++ b/system/dosemu/dosemu.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=dosemu -VERSION=1.4.0 +VERSION=${VERSION:-20130804_35054ba} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -66,20 +66,20 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar -xvf $CWD/$PRGNAM-$VERSION.tgz +tar -xvf $CWD/$PRGNAM-$VERSION.tar.?z* cd $PRGNAM-$VERSION chown -R root:root . -chmod -R a-s,u+w,go+r-w . - -# patch to upgrade version to 1.4.0.1 (1.4.1 pre-release) -# http://dosemu.sourceforge.net/prereleases/patch-1.4.0.1.gz -zcat $CWD/patch-1.4.0.1.gz | patch -p1 +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ - --sysconfdir=/etc \ + --sysconfdir=/etc/dosemu \ --localstatedir=/var \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --with-x="$WITH_X" \ @@ -89,20 +89,18 @@ CXXFLAGS="$SLKCFLAGS" \ make make install DESTDIR=$PKG -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -( cd $PKG/usr/man - find . -type f -exec gzip -9 {} \; - for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done -) +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 +( cd $PKG/etc/dosemu mv dosemu.conf dosemu.conf.new mv dosemu.users dosemu.users.new mv global.conf global.conf.new |