wok-current annotate nvidia-173xx/receipt @ rev 16125
ARM: add xorg-libXdamage and conky
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Mar 23 22:52:11 2014 +0100 (2014-03-23) |
parents | 164fcaca1cd0 |
children | 9689f1b75619 |
rev | line source |
---|---|
mojo@11768 | 1 # SliTaz package receipt. |
mojo@11768 | 2 |
mojo@11768 | 3 PACKAGE="nvidia-173xx" |
mojo@11768 | 4 VERSION="173.14.31" |
gokhlayeh@12012 | 5 CATEGORY="non-free" |
mojo@11768 | 6 MAINTAINER="jozee@slitaz.org" |
pascal@15584 | 7 LICENSE="other" |
mojo@11768 | 8 SHORT_DESC="NVIDIA drivers (non-free)" |
mojo@11768 | 9 WEB_SITE="http://www.nvidia.com/" |
mojo@11768 | 10 SOURCE="NVIDIA-Linux-x86-${VERSION}-pkg1" |
mojo@11768 | 11 TARBALL="${SOURCE}.run" |
mojo@11768 | 12 WGET_URL="http://download.nvidia.com/XFree86/Linux-x86/$VERSION/$TARBALL" |
mojo@11768 | 13 RUN_OPTS="--extract-only" |
pascal@14528 | 14 TAGS="driver graphic video" |
mojo@11768 | 15 |
mojo@11807 | 16 DEPENDS="linux xorg-server gtk+ cairo linux-agp xorg-libXv" |
pascal@13278 | 17 BUILD_DEPENDS="linux-module-headers coreutils-file-summarize xz" |
mojo@11768 | 18 |
mojo@11768 | 19 # Rules to configure and make the package. |
mojo@11768 | 20 |
mojo@11768 | 21 compile_rules() |
mojo@11768 | 22 { |
mojo@11768 | 23 cd $src/usr/src/nv/ |
mojo@11768 | 24 # Only use .unblocked_ioctl since 2.6.36 |
mojo@11768 | 25 sed -i 's|\.ioctl|// &|' nv.c |
mojo@11768 | 26 make SYSSRC="/usr/src/linux" module 2>&1 | sed s'/ERROR:/error:/' |
pascal@15587 | 27 xz nvidia.ko |
mojo@11768 | 28 } |
mojo@11768 | 29 |
mojo@11768 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
mojo@11768 | 31 genpkg_rules() |
mojo@11768 | 32 { |
pankso@15855 | 33 EXTRAVERSION=_${kvers} |
mojo@11768 | 34 |
mojo@11768 | 35 mkdir -p $fs/usr/share $fs/usr/lib/X11 $fs/usr/share/licenses/$PACKAGE \ |
mojo@11768 | 36 $fs/lib/modules/$kvers-slitaz/kernel/drivers/video \ |
mojo@11768 | 37 $fs/usr/share/doc/$PACKAGE |
mojo@11768 | 38 |
pascal@15587 | 39 cp $src/usr/src/nv/nvidia.ko.xz \ |
pascal@13278 | 40 $fs/lib/modules/$kvers-slitaz/kernel/drivers/video/ |
pascal@13278 | 41 chown root $fs/lib/modules/$kvers-slitaz/kernel/drivers/video/nvidia.ko.xz |
pascal@13278 | 42 chmod 0644 $fs/lib/modules/$kvers-slitaz/kernel/drivers/video/nvidia.ko.xz |
mojo@11768 | 43 |
mojo@11768 | 44 cp -a $src/LICENSE $fs/usr/share/licenses/$PACKAGE |
mojo@11768 | 45 cp -a $src/usr/bin $fs/usr |
mojo@11768 | 46 cp -a $src/nvidia-installer $fs/usr/bin |
mojo@11768 | 47 cp -a $src/usr/lib/*.so* $fs/usr/lib/ |
mojo@11768 | 48 cp -a $src/usr/lib/tls $fs/usr/lib/ |
mojo@11768 | 49 cp -a $src/usr/X11R6/lib/libXvMCNVIDIA.so.$VERSION $fs/usr/lib |
mojo@11768 | 50 cp -a $src/usr/X11R6/lib/modules $fs/usr/lib/X11/ |
mojo@11768 | 51 cp -a $src/usr/share/applications $fs/usr/share |
mojo@11768 | 52 cp -a $src/usr/share/pixmaps $fs/usr/share |
mojo@11768 | 53 cp -a $src/usr/share/doc/* $fs/usr/share/doc/$PACKAGE/ |
mojo@11768 | 54 cp -a $src/usr/X11R6/lib/* $fs/usr/lib/X11 |
mojo@11768 | 55 |
mojo@11768 | 56 ln -s libcuda.so.$VERSION $fs/usr/lib/libcuda.so |
mojo@11768 | 57 ln -s libcuda.so.$VERSION $fs/usr/lib/libcuda.so.1 |
mojo@11768 | 58 ln -s libGL.so.$VERSION $fs/usr/lib/libGL.so |
mojo@11768 | 59 ln -s libGL.so.$VERSION $fs/usr/lib/libGL.so.1 |
mojo@11768 | 60 ln -s libGLcore.so.$VERSION $fs/usr/lib/libGLcore.so.1 |
mojo@11768 | 61 ln -s libnvidia-cfg.so.$VERSION $fs/usr/lib/libnvidia-cfg.so |
mojo@11768 | 62 ln -s libnvidia-cfg.so.$VERSION $fs/usr/lib/libnvidia-cfg.so.1 |
mojo@11768 | 63 ln -s libnvidia-tls.so.$VERSION $fs/usr/lib/libnvidia-tls.so.1 |
mojo@11768 | 64 ln -s libnvidia-tls.so.$VERSION $fs/usr/lib/tls/libnvidia-tls.so.1 |
mojo@11768 | 65 ln -s libXvMCNVIDIA.so.$VERSION $fs/usr/lib/libXvMCNVIDIA.so.1 |
mojo@11768 | 66 ln -s libXvMCNVIDIA.so.$VERSION $fs/usr/lib/libXvMCNVIDIA.so |
mojo@11768 | 67 ln -s libXvMCNVIDIA.so.$VERSION $fs/usr/lib/libXvMCNVIDIA_dynamic.so.1 |
mojo@11768 | 68 ln -s libXvMCNVIDIA.so.$VERSION $fs/usr/lib/libXvMCNVIDIA_dynamic.so |
mojo@11768 | 69 ln -s libnvidia-wfb.so.$VERSION $fs/usr/lib/X11/modules/libnvidia-wfb.so |
mojo@11768 | 70 ln -s libnvidia-wfb.so.$VERSION $fs/usr/lib/X11/modules/libnvidia-wfb.so.1 |
mojo@11768 | 71 ln -s libglx.so.$VERSION $fs/usr/lib/X11/modules/extensions/libglx.so |
mojo@11768 | 72 } |
mojo@11768 | 73 |
mojo@11768 | 74 pre_install() |
mojo@11768 | 75 { |
mojo@11768 | 76 echo "" |
mojo@11768 | 77 echo -e "\033[1m PROPRIETARY LICENSE:\033[0m $2" |
mojo@11768 | 78 echo "================================================================================" |
mojo@11768 | 79 echo "You are installing a package with proprietary license." |
mojo@11768 | 80 echo "You must accept the license." |
mojo@11768 | 81 echo "================================================================================" |
mojo@11768 | 82 echo "" |
mojo@11768 | 83 |
mojo@11768 | 84 } |
mojo@11768 | 85 |
mojo@11768 | 86 post_install() |
mojo@11768 | 87 { |
mojo@11768 | 88 echo "Processing post-install commands..." |
pankso@15855 | 89 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz |
mojo@11768 | 90 |
mojo@11768 | 91 # correct .desktop file file |
mojo@11768 | 92 sed -i 's:__UTILS_PATH__/::' $1/usr/share/applications/nvidia-settings.desktop |
mojo@11768 | 93 sed -i 's:__PIXMAP_PATH__/::' $1/usr/share/applications/nvidia-settings.desktop |
mojo@11768 | 94 |
mojo@11768 | 95 echo "" |
mojo@11768 | 96 echo -e "\033[1m NVIDIA LICENSE INFORMATION:\033[0m $2" |
mojo@11768 | 97 echo "================================================================================" |
mojo@11768 | 98 echo "For installing this package, you have to accept the $PACKAGE license." |
mojo@11768 | 99 echo "The license is stored in /usr/share/licenses/$PACKAGE " |
mojo@11768 | 100 echo -n "Would you like to read the license (y/N) : "; read anser |
mojo@11768 | 101 if [ "$anser" = "y" ]; then |
mojo@11768 | 102 cat /usr/share/licenses/"$PACKAGE"/LICENSE | more |
mojo@11768 | 103 echo "" |
mojo@11768 | 104 fi |
mojo@11768 | 105 echo "================================================================================" |
mojo@11768 | 106 echo -n "Do you accept the license (y/N) : "; read anser |
mojo@11768 | 107 if [ "$anser" = "N" ]; then |
mojo@11768 | 108 echo "You did not accept the license, Removing the pkg." |
mojo@11768 | 109 tazpkg remove "$PACKAGE" |
mojo@11768 | 110 fi |
mojo@11768 | 111 |
mojo@11768 | 112 } |
mojo@11768 | 113 |
mojo@11768 | 114 post_remove() |
mojo@11768 | 115 { |
mojo@11768 | 116 echo "Processing post-remove commands..." |
mojo@11768 | 117 depmod -a |
mojo@11768 | 118 } |