wok view nvidia64-96xx/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-96xx"
4 SOURCE="nvidia-96xx"
5 VERSION="96.43.23"
6 CATEGORY="network"
7 MAINTAINER="psychomaniak@xakep.ru"
8 LICENSE="other"
9 SHORT_DESC="NVIDIA-legacy drivers (from Geforce MX200 to 7950) (non-free)"
10 WEB_SITE="http://www.nvidia.com/"
11 TARBALL="NVIDIA-Linux-x86-${VERSION}-pkg0.run"
12 WGET_URL="http://download.nvidia.com/XFree86/Linux-x86/$VERSION/$TARBALL"
13 RUN_OPTS="--extract-only"
14 TAGS="drivers graphic video"
15 PROVIDE="mesa:linux64 nvidia-96xx:linux64"
17 DEPENDS="linux64 xorg-server gtk+ cairo linux-agp linux-drm"
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 # Only use .unblocked_ioctl since 2.6.36
30 sed -i 's|\.ioctl|// &|' nv.c
31 make SYSSRC="/usr/src/linux" module 2>&1 | sed s'/ERROR:/error:/' &&
32 xz nvidia.ko
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 EXTRAVERSION=_${kvers}
40 mkdir -p $fs/usr/share $fs/usr/lib/X11 $fs/usr/share/licenses/$SOURCE
41 mkdir -p $fs/lib/modules/$kvers-slitaz/kernel/drivers/video
42 mkdir -p $fs/usr/share/doc/$SOURCE
44 # Compress and install module
45 cp $src/usr/src/nv/nvidia.ko.xz \
46 $fs/lib/modules/$kvers-slitaz/kernel/drivers/video/
48 chown root $fs/lib/modules/$kvers-slitaz/kernel/drivers/video/nvidia.ko.xz
49 chmod 0644 $fs/lib/modules/$kvers-slitaz/kernel/drivers/video/nvidia.ko.xz
51 cp -a $src/LICENSE $fs/usr/share/licenses/$SOURCE
52 cp -a $src/usr/bin $fs/usr
53 cp -a $src/nvidia-installer $fs/usr/bin
54 cp -a $src/usr/lib/*.so* $fs/usr/lib/
55 cp -a $src/usr/lib/tls $fs/usr/lib/
56 cp -a $src/usr/share/pixmaps $fs/usr/share
57 cp -a $src/usr/share/doc/* $fs/usr/share/doc/$SOURCE/
58 cp -a $src/usr/X11R6/lib/* $fs/usr/lib/X11
60 # Links
61 for i in $(find $fs -iname *.so*); do
62 ln -s $(basename $i) $(dirname $i)/$(basename ${i/so.${VERSION}/so/})
63 ln -s $(basename $i) $(dirname $i)/$(basename ${i/so.${VERSION}/so.1/})
64 done
66 # exclude from files.list (for tazpkg's "find-depends")
67 cd $fs/usr/lib
68 for i in $(ls libGL.so*) ; do mv -f $i ${i//./-.-} ; done
69 }
71 pre_install()
72 {
73 title 'PROPRIETARY LICENSE'
74 echo 'You are installing a package with proprietary license.'
75 echo 'You must accept the license.'
76 footer
77 }
79 post_install()
80 {
81 # Restore excluded from files.list (for tazpkg's "find-depends")
82 cd $1/usr/lib
83 for i in $(ls libGL.so*) ; do mv -f $i ${i//-.-/.} ; done
85 newline
86 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
88 # correct .desktop file file
89 sed -i 's:__UTILS_PATH__/::' "$1/usr/share/applications/nvidia-settings.desktop"
90 sed -i 's:__PIXMAP_PATH__/::' "$1/usr/share/applications/nvidia-settings.desktop"
92 title 'NVIDIA LICENSE INFORMATION'
93 echo "For installing this package, you have to accept the $SOURCE license."
94 echo "The license is stored in /usr/share/licenses/$SOURCE "
95 echo -n "Would you like to read the license (y/N) : "; read anser
96 if [ "$anser" == 'y' ]; then
97 more /usr/share/licenses/"$SOURCE"/LICENSE
98 echo
99 fi
100 separator
101 echo -n "Do you accept the license (y/N) : "; read anser
102 if [ "$anser" == 'N' ]; then
103 echo "You did not accept the license, Removing the pkg."
104 tazpkg remove "$SOURCE"
105 fi
106 }
108 TAZBB_NO_INSTALL="because this is not hardware neutral"