wok-next rev 1631

kbd-busybox: can't build on virtual systems !
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Oct 23 20:31:20 2008 +0000 (2008-10-23)
parents 2310a0b08eb3
children a42e1101de3e
files kbd-busybox/receipt
line diff
     1.1 --- a/kbd-busybox/receipt	Thu Oct 23 20:29:40 2008 +0000
     1.2 +++ b/kbd-busybox/receipt	Thu Oct 23 20:31:20 2008 +0000
     1.3 @@ -8,19 +8,24 @@
     1.4  BUILD_DEPENDS="kbd-base busybox"
     1.5  WEB_SITE="http://www.slitaz.org/"
     1.6  
     1.7 -# Rules to gen a SliTaz package suitable for Tazpkg.
     1.8 -genpkg_rules()
     1.9 +# Rules to configure and make the package.
    1.10 +compile_rules()
    1.11  {
    1.12 -	mkdir -p $fs/usr/share/kmap
    1.13 -	dumpkmap > /tmp/current.kmap
    1.14 +	mkdir -p $src/_pkg/usr/share/kmap
    1.15 +	cd $src
    1.16 +	dumpkmap > current.kmap || return 1
    1.17  	for i in $(cd /usr/share/kbd/keymaps/i386 ; ls */*.map.gz); do
    1.18  		[ "$(dirname $i)" = "include" ] && continue
    1.19  		i=$(basename $i)
    1.20  		i=${i%.map.gz}
    1.21 -		loadkeys $i
    1.22 -		dumpkmap > $fs/usr/share/kmap/$i.kmap
    1.23 +		loadkeys $i && dumpkmap > _pkg/usr/share/kmap/$i.kmap
    1.24  	done
    1.25 -	loadkmap < /tmp/current.kmap
    1.26 -	rm -f /tmp/current.kmap
    1.27 +	loadkmap < current.kmap
    1.28  }
    1.29  
    1.30 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.31 +genpkg_rules()
    1.32 +{
    1.33 +	cp -a $_pkg/usr $fs
    1.34 +}
    1.35 +