wok-current rev 5069

improve nvidia receipt; update DEPENDS
author Rohit Joshi <jozee@slitaz.org>
date Fri Mar 12 11:26:56 2010 +0000 (2010-03-12)
parents 81e8704dacde
children 7ab24a6af72d
files nvidia/receipt
line diff
     1.1 --- a/nvidia/receipt	Fri Mar 12 17:24:19 2010 +0100
     1.2 +++ b/nvidia/receipt	Fri Mar 12 11:26:56 2010 +0000
     1.3 @@ -5,7 +5,7 @@
     1.4  CATEGORY="network"
     1.5  MAINTAINER="jozee@slitaz.org"
     1.6  SHORT_DESC="NVIDIA drivers (non-free)"
     1.7 -DEPENDS="linux xorg-server gtk+ cairo-xcb"
     1.8 +DEPENDS="linux xorg-server gtk+ cairo-xcb linux-agp"
     1.9  BUILD_DEPENDS="$DEPENDS"
    1.10  WEB_SITE="http://www.nvidia.com/"
    1.11  SOURCE="NVIDIA-Linux-x86-${VERSION}-pkg0"
    1.12 @@ -38,7 +38,9 @@
    1.13  	_pkg="$WOK/$PACKAGE/$SOURCE"
    1.14  	
    1.15  	mkdir -p $fs/usr/share $fs/usr/lib/X11 $fs/usr/share/licenses/$PACKAGE \
    1.16 -				 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/video
    1.17 +				 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/video \
    1.18 +				 $fs/usr/share/doc/$PACKAGE \
    1.19 +				 $fs/usr/share/applications
    1.20  	
    1.21  	# Compress and install module
    1.22  	lzma e $_pkg/usr/src/nv/nvidia.ko \
    1.23 @@ -52,9 +54,8 @@
    1.24  	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib/
    1.25  	cp -a $_pkg/usr/lib/tls $fs/usr/lib/
    1.26  	cp -a $_pkg/usr/share/pixmaps $fs/usr/share
    1.27 -	cp -a $_pkg/usr/share/doc $fs/usr/share
    1.28 -	cp -a $_pkg/usr/X11R6/lib/* $fs/usr/lib/X11
    1.29 -	
    1.30 +	cp -a $_pkg/usr/share/doc/* $fs/usr/share/doc/$PACKAGE/
    1.31 +	cp -a $_pkg/usr/X11R6/lib/* $fs/usr/lib/X11	
    1.32  		
    1.33  }
    1.34  
    1.35 @@ -75,6 +76,10 @@
    1.36  	echo "Processing post-install commands..."
    1.37  	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
    1.38  	
    1.39 +	# correct .desktop file file
    1.40 +	sed -i 's:__UTILS_PATH__/::' $1/usr/share/applications/nvidia-settings.desktop
    1.41 +	sed -i 's:__PIXMAP_PATH__/::' $1/usr/share/applications/nvidia-settings.desktop
    1.42 +	
    1.43  	echo ""
    1.44  	echo -e "\033[1m NVIDIA LICENSE INFORMATION:\033[0m $2"
    1.45  	echo "================================================================================"