wok diff dev86/receipt @ rev 18405

libcanberra: race condition
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Sep 19 09:52:06 2015 +0200 (2015-09-19)
parents 051931e905b0
children e3270f32432e
line diff
     1.1 --- a/dev86/receipt	Fri Dec 06 10:39:07 2013 +0000
     1.2 +++ b/dev86/receipt	Sat Sep 19 09:52:06 2015 +0200
     1.3 @@ -1,26 +1,22 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="dev86"
     1.7 -VERSION="0.16.18"
     1.8 +VERSION="0.16.21"
     1.9  CATEGORY="development"
    1.10  SHORT_DESC="Linux 8086 development environment."
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12  LICENSE="GPL2"
    1.13 -SOURCE="Dev86src"
    1.14 -TARBALL="$SOURCE-$VERSION.tar.gz"
    1.15 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.16  WEB_SITE="http://www.debath.co.uk/"
    1.17 -WGET_URL="${WEB_SITE}$PACKAGE/$TARBALL"
    1.18 +WGET_URL="https://github.com/lkundrak/dev86/archive/v$VERSION.tar.gz"
    1.19  TAGS="compiler C assembler 8086"
    1.20  
    1.21 +BUILD_DEPENDS="wget"
    1.22 +
    1.23  # Rules to configure and make the package.
    1.24  compile_rules()
    1.25  {
    1.26 -	mv $PACKAGE-$VERSION $src 2> /dev/null
    1.27 -	cd $src
    1.28 -	sed -i '/rm ..\/include\/malloc.h/d' libc/malloc/Makefile*
    1.29 -	# Be busybox compatible
    1.30 -	sed -i 's/ | cat -v//' libcompat
    1.31 -	echo q | make -j 1 PREFIX=/usr &&
    1.32 +	make -j 1 PREFIX=/usr &&
    1.33  	make -j 1 DIST=$DESTDIR install
    1.34  }
    1.35  
    1.36 @@ -36,9 +32,10 @@
    1.37  # Pre and post install commands for Tazpkg.
    1.38  post_install()
    1.39  {
    1.40 -	[ -z "$1" -a -f /proc/sys/fs/binfmt_misc/register ] &&
    1.41 -		cat   > /proc/sys/fs/binfmt_misc/register <<EOT
    1.42 +	[ "$1" ] && return
    1.43 +	register=/proc/sys/fs/binfmt_misc/register
    1.44 +	[ -f $register ] || modprobe binfmt_misc
    1.45 +	[ -f $register ] && cat > $register <<EOT
    1.46  :i86-elks:M::\x01\x03\x20\x00:\xff\xff\xff\x83:/usr/bin/elksemu:
    1.47  EOT
    1.48  }
    1.49 -