wok annotate nvidia/receipt @ rev 9641
Fixed rhino, ecj, and xalan-xerces-j depends. Putting java-jre for depends was a bad idea since these packages are build depends for icedtea6-jdk. java-jre is a wanted package for icetea6-jdk. This was causing a depend loop.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Apr 27 16:22:35 2011 +0000 (2011-04-27) |
parents | 8ca0fdca7d34 |
children | ca29a492cc62 |
rev | line source |
---|---|
jozee@4602 | 1 # SliTaz package receipt. |
jozee@4602 | 2 |
jozee@4602 | 3 PACKAGE="nvidia" |
jozee@5339 | 4 VERSION="195.36.15" |
jozee@5602 | 5 CATEGORY="x-window" |
jozee@4602 | 6 MAINTAINER="jozee@slitaz.org" |
jozee@4602 | 7 SHORT_DESC="NVIDIA drivers (non-free)" |
jozee@5532 | 8 DEPENDS="linux xorg-server gtk+ cairo linux-agp linux-drm" |
pascal@9211 | 9 BUILD_DEPENDS="$DEPENDS linux-module-headers coreutils-file-summarize" |
jozee@4602 | 10 WEB_SITE="http://www.nvidia.com/" |
jozee@4602 | 11 SOURCE="NVIDIA-Linux-x86-${VERSION}-pkg0" |
jozee@4602 | 12 TARBALL="${SOURCE}.run" |
jozee@4602 | 13 TAGS="drivers graphic video" |
jozee@4602 | 14 |
jozee@4602 | 15 # Rules to configure and make the package. |
jozee@4602 | 16 |
jozee@4602 | 17 compile_rules() { |
jozee@4602 | 18 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` |
jozee@4602 | 19 WGET_URL="http://download.nvidia.com/XFree86/Linux-x86/$VERSION/$TARBALL" |
jozee@4602 | 20 |
jozee@4602 | 21 cd $WOK/$PACKAGE |
pascal@5553 | 22 [ -f $SOURCES_REPOSITORY/$TARBALL ] || wget $WGET_URL -P $SOURCES_REPOSITORY |
jozee@4602 | 23 |
pascal@5553 | 24 chmod +x $SOURCES_REPOSITORY/$TARBALL |
pascal@5553 | 25 sh $SOURCES_REPOSITORY/$TARBALL --extract-only |
jozee@4602 | 26 |
jozee@4602 | 27 cd $SOURCE/usr/src/nv/ |
pascal@7418 | 28 sed -i 's|\.ioctl|// &|' nv.c # only use .unblocked_ioctl since 2.6.36 |
slaxemulator@7420 | 29 make SYSSRC="/usr/src/linux" module |
jozee@4602 | 30 } |
jozee@4602 | 31 |
jozee@4602 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@4602 | 33 genpkg_rules() |
jozee@4602 | 34 { |
jozee@4602 | 35 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` |
jozee@4602 | 36 EXTRAVERSION=_$KERNEL_VERSION |
jozee@4602 | 37 _pkg="$WOK/$PACKAGE/$SOURCE" |
jozee@4602 | 38 |
jozee@4602 | 39 mkdir -p $fs/usr/share $fs/usr/lib/X11 $fs/usr/share/licenses/$PACKAGE \ |
jozee@5069 | 40 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/video \ |
jozee@5070 | 41 $fs/usr/share/doc/$PACKAGE |
jozee@4602 | 42 |
jozee@4602 | 43 # Compress and install module |
jozee@4602 | 44 lzma e $_pkg/usr/src/nv/nvidia.ko \ |
jozee@4602 | 45 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/video/nvidia.ko.gz |
jozee@4602 | 46 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/video/nvidia.ko.gz |
jozee@4602 | 47 chmod 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/video/nvidia.ko.gz |
jozee@4602 | 48 |
jozee@4602 | 49 cp -a $_pkg/LICENSE $fs/usr/share/licenses/$PACKAGE |
jozee@4602 | 50 cp -a $_pkg/usr/bin $fs/usr |
jozee@4602 | 51 cp -a $_pkg/nvidia-installer $fs/usr/bin |
jozee@4602 | 52 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib/ |
jozee@4602 | 53 cp -a $_pkg/usr/lib/tls $fs/usr/lib/ |
jozee@4602 | 54 cp -a $_pkg/usr/share/pixmaps $fs/usr/share |
jozee@5069 | 55 cp -a $_pkg/usr/share/doc/* $fs/usr/share/doc/$PACKAGE/ |
jozee@5069 | 56 cp -a $_pkg/usr/X11R6/lib/* $fs/usr/lib/X11 |
jozee@5572 | 57 |
slaxemulator@7420 | 58 ln -s libglx.so.$VERSION $fs/usr/lib/X11/modules/extensions/libglx.so |
slaxemulator@7420 | 59 ln -s libGL.so.$VERSION $fs/usr/lib/libGL.so |
slaxemulator@7420 | 60 ln -s libGL.so.$VERSION $fs/usr/lib/libGL.so.1 |
slaxemulator@7420 | 61 ln -s libGLcore.so.$VERSION $fs/usr/lib/libGLcore.so.1 |
slaxemulator@7420 | 62 ln -s libnvidia-cfg.so.$VERSION $fs/usr/lib/libnvidia-cfg.so.1 |
slaxemulator@7420 | 63 ln -s libnvidia-tls.so.$VERSION $fs/usr/lib/libnvidia-tls.so.1 |
slaxemulator@7420 | 64 ln -s libcuda.so.$VERSION $fs/usr/lib/libcuda.so.1 |
slaxemulator@7420 | 65 ln -s libcuda.so.$VERSION $fs/usr/lib/libcuda.so |
slaxemulator@7420 | 66 ln -s libvdpau.so.$VERSION $fs/usr/lib/libvdpau.so.1 |
slaxemulator@7420 | 67 ln -s libvdpau_nvidia.so.$VERSION $fs/usr/lib/libvdpau_nvidia.so.1 |
slaxemulator@7420 | 68 ln -s libXvMCNVIDIA.so.$VERSION $fs/usr/lib/X11/libXvMCNVIDIA_dynamic.so.1 |
jozee@4602 | 69 } |
jozee@4602 | 70 |
jozee@4602 | 71 pre_install() |
jozee@4602 | 72 { |
jozee@4602 | 73 echo "" |
jozee@4602 | 74 echo -e "\033[1m PROPRIETARY LICENSE:\033[0m $2" |
jozee@4602 | 75 echo "================================================================================" |
jozee@4602 | 76 echo "You are installing a package with proprietary license." |
jozee@4602 | 77 echo "You must accept the license." |
slaxemulator@7420 | 78 echo "================================================================================" |
slaxemulator@7420 | 79 echo "" |
jozee@4602 | 80 |
jozee@4602 | 81 } |
jozee@4602 | 82 |
jozee@4602 | 83 post_install() |
jozee@4602 | 84 { |
jozee@4602 | 85 echo "Processing post-install commands..." |
jozee@4602 | 86 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
jozee@4602 | 87 |
jozee@5069 | 88 # correct .desktop file file |
jozee@5069 | 89 sed -i 's:__UTILS_PATH__/::' $1/usr/share/applications/nvidia-settings.desktop |
jozee@5069 | 90 sed -i 's:__PIXMAP_PATH__/::' $1/usr/share/applications/nvidia-settings.desktop |
jozee@5069 | 91 |
jozee@4602 | 92 echo "" |
jozee@4602 | 93 echo -e "\033[1m NVIDIA LICENSE INFORMATION:\033[0m $2" |
jozee@4602 | 94 echo "================================================================================" |
jozee@4602 | 95 echo "For installing this package, you have to accept the $PACKAGE license." |
slaxemulator@7420 | 96 echo "The license is stored in /usr/share/licenses/$PACKAGE " |
pascal@9214 | 97 if [ "$(tty)" != "not a tty" -a "$step_running" != |
pascal@9214 | 98 "Looking for build dependencies" ]; then |
pascal@9213 | 99 echo -n "Would you like to read the license (y/N) : "; read anser |
pascal@9213 | 100 if [ "$anser" = "y" ]; then |
pascal@9213 | 101 more < /usr/share/licenses/"$PACKAGE"/LICENSE |
pascal@9213 | 102 echo "" |
pascal@9213 | 103 fi |
pascal@9213 | 104 echo "================================================================================" |
pascal@9213 | 105 echo -n "Do you accept the license (y/N) : "; read anser |
pascal@9213 | 106 if [ "$anser" = "N" ]; then |
pascal@9213 | 107 echo "You did not accept the license, Removing the pkg." |
pascal@9213 | 108 tazpkg remove "$PACKAGE" |
pascal@9213 | 109 fi |
jozee@4602 | 110 fi |
jozee@4602 | 111 } |
jozee@4602 | 112 |
jozee@4602 | 113 post_remove() |
jozee@4602 | 114 { |
jozee@4602 | 115 echo "Processing post-remove commands..." |
jozee@4602 | 116 depmod -a |
jozee@4602 | 117 } |
jozee@4602 | 118 |
pascal@5013 | 119 TAZBB_NO_INSTALL="because this is not hardware neutral" |