wok diff libgphoto2/receipt @ rev 19363

Add bwm-ng
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Aug 03 09:44:00 2016 +0200 (2016-08-03)
parents 911df1d92666
children 8897c7156a03
line diff
     1.1 --- a/libgphoto2/receipt	Mon Nov 09 14:43:54 2015 +0200
     1.2 +++ b/libgphoto2/receipt	Wed Aug 03 09:44:00 2016 +0200
     1.3 @@ -54,16 +54,14 @@
     1.4  
     1.5  post_install()
     1.6  {
     1.7 -	local root=$1
     1.8 -
     1.9 -	HAL_FDI="$root/usr/share/hal/fdi/information/20thirdparty/10-camera-libgphoto2.fdi"
    1.10 -	UDEV_RULE="$root/etc/udev/rules.d/70-libgphoto2.rules"
    1.11 -	CAM_LIST="$root/usr/lib/libgphoto2/print-camera-list"
    1.12 +	HAL_FDI="$1/usr/share/hal/fdi/information/20thirdparty/10-camera-libgphoto2.fdi"
    1.13 +	UDEV_RULE="$1/etc/udev/rules.d/70-libgphoto2.rules"
    1.14 +	CAM_LIST="$1/usr/lib/libgphoto2/print-camera-list"
    1.15  
    1.16  	# Let print-camera-list find libgphoto2.so
    1.17 -	export LD_LIBRARY_PATH="$root/usr/lib"
    1.18 +	export LD_LIBRARY_PATH="$1/usr/lib"
    1.19  	# Let libgphoto2 find its camera-modules before running print-camera-list
    1.20 -	export CAMLIBS="$root/usr/lib/libgphoto2/$VERSION"
    1.21 +	export CAMLIBS="$1/usr/lib/libgphoto2/$VERSION"
    1.22  
    1.23  	# HAL file
    1.24  	"$CAM_LIST" hal-fdi > "$HAL_FDI" || return 1
    1.25 @@ -71,10 +69,10 @@
    1.26  	#udev rule
    1.27  	"$CAM_LIST" udev-rules version 0.98 group camera mode 0660 > "$UDEV_RULE" || return 1
    1.28  
    1.29 -	tazpkg reconfigure udev --root=$root
    1.30 +	tazpkg reconfigure udev --root="$1"
    1.31  
    1.32  	# add group camera
    1.33 -	if ! grep -q camera $root/etc/group; then
    1.34 +	if ! grep -q camera "$1/etc/group"; then
    1.35  		chroot "$1/" addgroup -g 97 camera
    1.36  	fi
    1.37