wok-next diff broadcom-wl/receipt @ rev 17979

mtpaint: view external using GPicView, print image using Yad, view documentation online using TazWeb.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Apr 18 17:02:44 2015 +0300 (2015-04-18)
parents 445cae9c0563
children 86d61e110274
line diff
     1.1 --- a/broadcom-wl/receipt	Sun Dec 08 11:31:53 2013 +0000
     1.2 +++ b/broadcom-wl/receipt	Sat Apr 18 17:02:44 2015 +0300
     1.3 @@ -27,26 +27,22 @@
     1.4  # Rules to gen a SliTaz package suitable for Tazpkg.
     1.5  genpkg_rules()
     1.6  {
     1.7 -	KERNEL_VERSION=`grep  ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
     1.8 -	EXTRAVERSION=_$KERNEL_VERSION
     1.9 -	
    1.10 -	mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless
    1.11 -	
    1.12 +	EXTRAVERSION=_${kvers}
    1.13 +	mkdir -p $fs/lib/modules/${kvers}-slitaz/kernel/drivers/net/wireless
    1.14  	# Compress and install module
    1.15 -	cp $src/wl.ko.xz $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless/
    1.16 -	chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless/wl.ko.xz
    1.17 -	chmod 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless/wl.ko.xz
    1.18 +	install -o root -m 0644 $src/wl.ko.xz \
    1.19 +		$fs/lib/modules/${kvers}-slitaz/kernel/drivers/net/wireless/wl.ko.xz
    1.20  }
    1.21  
    1.22  # Post install/remove commands for Tazpkg.
    1.23  post_install()
    1.24  {
    1.25  	echo "Processing post-install commands..."
    1.26 -	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
    1.27 +	chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
    1.28  }
    1.29  
    1.30  post_remove()
    1.31  {
    1.32  	echo "Processing post-remove commands..."
    1.33 -	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
    1.34 +	chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
    1.35  }