wok view nvidia64-173xx/receipt @ rev 20240
Add dummynet64, lirc64, nvidia64-173xx, nvidia64-96xx, tp_smapi64
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 09 16:57:32 2018 +0100 (2018-03-09) |
parents | |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="nvidia64-173xx"
4 SOURCE="nvidia-173xx"
5 VERSION="173.14.39"
6 CATEGORY="non-free"
7 MAINTAINER="jozee@slitaz.org"
8 LICENSE="other"
9 SHORT_DESC="NVIDIA drivers (non-free)"
10 WEB_SITE="http://www.nvidia.com/"
11 TARBALL="NVIDIA-Linux-x86-${VERSION}-pkg1.run"
12 WGET_URL="http://download.nvidia.com/XFree86/Linux-x86/$VERSION/$TARBALL"
13 RUN_OPTS="--extract-only"
14 TAGS="driver graphic video"
15 PROVIDE="nvidia mesa"
17 DEPENDS="linux64 xorg-server gtk+ cairo linux-agp xorg-libXv"
18 BUILD_DEPENDS="linux64-module-headers coreutils-file-summarize xz \
19 uclibc-cross-compiler-x86_64"
21 # Aufs enable chroot
22 AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8("
24 # Rules to configure and make the package.
26 compile_rules()
27 {
28 cd $src/usr/src/nv/
29 sed -i 's|uname -m|echo x86_64|' Makefile*
30 # Only use .unblocked_ioctl since 2.6.36
31 sed -i 's|\.ioctl|// &|' nv.c
32 make SYSSRC="/usr/src/linux" module 2>&1 | sed s'/ERROR:/error:/'
33 xz nvidia.ko
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 EXTRAVERSION=_${kvers}
41 mkdir -p \
42 $fs/usr/share \
43 $fs/usr/lib/X11 \
44 $fs/usr/share/licenses/$SOURCE \
45 $fs/lib/modules/$kvers-slitaz/kernel/drivers/video \
46 $fs/usr/share/doc/$SOURCE
48 cp $src/usr/src/nv/nvidia.ko.xz \
49 $fs/lib/modules/$kvers-slitaz/kernel/drivers/video/
50 chown root $fs/lib/modules/$kvers-slitaz/kernel/drivers/video/nvidia.ko.xz
51 chmod 0644 $fs/lib/modules/$kvers-slitaz/kernel/drivers/video/nvidia.ko.xz
53 cp -a $src/LICENSE $fs/usr/share/licenses/$SOURCE
54 cp -a $src/usr/bin $fs/usr
55 cp -a $src/nvidia-installer $fs/usr/bin
56 cp -a $src/usr/lib/*.so* $fs/usr/lib/
57 cp -a $src/usr/lib/tls $fs/usr/lib/
58 cp -a $src/usr/X11R6/lib/libXvMCNVIDIA.so.$VERSION $fs/usr/lib
59 cp -a $src/usr/X11R6/lib/modules $fs/usr/lib/X11/
60 cp -a $src/usr/share/applications $fs/usr/share
61 cp -a $src/usr/share/pixmaps $fs/usr/share
62 cp -a $src/usr/share/doc/* $fs/usr/share/doc/$SOURCE/
63 cp -a $src/usr/X11R6/lib/* $fs/usr/lib/X11
65 ln -s libcuda.so.$VERSION $fs/usr/lib/libcuda.so
66 ln -s libcuda.so.$VERSION $fs/usr/lib/libcuda.so.1
67 ln -s libGL.so.$VERSION $fs/usr/lib/libGL.so
68 ln -s libGL.so.$VERSION $fs/usr/lib/libGL.so.1
69 # exclude from files.list (for tazpkg's "find-depends")
70 cd $fs/usr/lib
71 for i in $(ls libGL.so*) ; do mv -f $i ${i//./-.-} ; done
73 ln -s libGLcore.so.$VERSION $fs/usr/lib/libGLcore.so.1
74 ln -s libnvidia-cfg.so.$VERSION $fs/usr/lib/libnvidia-cfg.so
75 ln -s libnvidia-cfg.so.$VERSION $fs/usr/lib/libnvidia-cfg.so.1
76 ln -s libnvidia-tls.so.$VERSION $fs/usr/lib/libnvidia-tls.so.1
77 ln -s libnvidia-tls.so.$VERSION $fs/usr/lib/tls/libnvidia-tls.so.1
78 ln -s libXvMCNVIDIA.so.$VERSION $fs/usr/lib/libXvMCNVIDIA.so.1
79 ln -s libXvMCNVIDIA.so.$VERSION $fs/usr/lib/libXvMCNVIDIA.so
80 ln -s libXvMCNVIDIA.so.$VERSION $fs/usr/lib/libXvMCNVIDIA_dynamic.so.1
81 ln -s libXvMCNVIDIA.so.$VERSION $fs/usr/lib/libXvMCNVIDIA_dynamic.so
82 ln -s libnvidia-wfb.so.$VERSION $fs/usr/lib/X11/modules/libnvidia-wfb.so
83 ln -s libnvidia-wfb.so.$VERSION $fs/usr/lib/X11/modules/libnvidia-wfb.so.1
84 ln -s libglx.so.$VERSION $fs/usr/lib/X11/modules/extensions/libglx.so
85 }
87 pre_install()
88 {
89 title "PROPRIETARY LICENSE"
90 echo "You are installing a package with proprietary license."
91 echo "You must accept the license."
92 footer
93 }
95 post_install()
96 {
97 # Restore excluded from files.list (for tazpkg's "find-depends")
98 cd $1/usr/lib
99 for i in $(ls libGL.so*) ; do mv -f $i ${i//-.-/.} ; done
101 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
103 # correct .desktop file file
104 sed -i 's:__UTILS_PATH__/::' "$1/usr/share/applications/nvidia-settings.desktop"
105 sed -i 's:__PIXMAP_PATH__/::' "$1/usr/share/applications/nvidia-settings.desktop"
107 title "NVIDIA LICENSE INFORMATION"
108 echo "For installing this package, you have to accept the $SOURCE license."
109 echo "The license is stored in /usr/share/licenses/$SOURCE "
110 echo -n "Would you like to read the license (y/N) : "; read anser
111 if [ "$anser" == 'y' ]; then
112 more "$1/usr/share/licenses/$SOURCE/LICENSE"
113 newline
114 fi
115 separator
116 echo -n 'Do you accept the license (y/N) : '; read anser
117 if [ "$anser" == 'N' ]; then
118 echo 'You did not accept the license, Removing the pkg.'
119 tazpkg remove "$SOURCE"
120 fi
121 }