wok-next diff nvidia-173xx/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | f48456621a9d |
children | d457c4e37c1b |
line diff
1.1 --- a/nvidia-173xx/receipt Tue Oct 16 16:46:05 2018 +0300 1.2 +++ b/nvidia-173xx/receipt Fri Nov 02 14:15:08 2018 +0200 1.3 @@ -4,26 +4,20 @@ 1.4 VERSION="173.14.39" 1.5 EXTRAVERSION="_$kvers" 1.6 CATEGORY="non-free" 1.7 -MAINTAINER="jozee@slitaz.org" 1.8 +MAINTAINER="devel@slitaz.org" 1.9 LICENSE="other" 1.10 SHORT_DESC="NVIDIA drivers (non-free)" 1.11 WEB_SITE="http://www.nvidia.com/" 1.12 REPOLOGY="nvidia-legacy-173.14" 1.13 1.14 -SOURCE="NVIDIA-Linux-x86-${VERSION}-pkg1" 1.15 -TARBALL="${SOURCE}.run" 1.16 +SOURCE="NVIDIA-Linux-x86-$VERSION-pkg1" 1.17 +TARBALL="$SOURCE.run" 1.18 WGET_URL="http://download.nvidia.com/XFree86/Linux-x86/$VERSION/$TARBALL" 1.19 RUN_OPTS="--extract-only" 1.20 -TAGS="driver graphic video" 1.21 -PROVIDE="nvidia mesa" 1.22 1.23 -DEPENDS="linux xorg-server gtk2 cairo linux-agp xorg-libXv" 1.24 BUILD_DEPENDS="linux-module-headers coreutils-file-summarize xz" 1.25 1.26 -# Rules to configure and make the package. 1.27 - 1.28 -compile_rules() 1.29 -{ 1.30 +compile_rules() { 1.31 cd $src/usr/src/nv/ 1.32 sed -i 's|.*utsname.*|&\n#include <linux/acpi.h>|' nv-linux.h 1.33 # Only use .unblocked_ioctl since 2.6.36 1.34 @@ -32,10 +26,7 @@ 1.35 xz nvidia.ko 1.36 } 1.37 1.38 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.39 -genpkg_rules() 1.40 -{ 1.41 - 1.42 +genpkg_rules() { 1.43 mkdir -p \ 1.44 $fs/usr/share \ 1.45 $fs/usr/lib/X11 \ 1.46 @@ -48,27 +39,30 @@ 1.47 chown root $fs/lib/modules/$kvers-slitaz/kernel/drivers/video/nvidia.ko.xz 1.48 chmod 0644 $fs/lib/modules/$kvers-slitaz/kernel/drivers/video/nvidia.ko.xz 1.49 1.50 - cp -a $src/LICENSE $fs/usr/share/licenses/$PACKAGE 1.51 - cp -a $src/usr/bin $fs/usr 1.52 - cp -a $src/nvidia-installer $fs/usr/bin 1.53 - cp -a $src/usr/lib/*.so* $fs/usr/lib/ 1.54 - cp -a $src/usr/lib/tls $fs/usr/lib/ 1.55 + cp -a $src/LICENSE $fs/usr/share/licenses/$PACKAGE 1.56 + cp -a $src/usr/bin $fs/usr 1.57 + cp -a $src/nvidia-installer $fs/usr/bin 1.58 + cp -a $src/usr/lib/*.so* $fs/usr/lib/ 1.59 + cp -a $src/usr/lib/tls $fs/usr/lib/ 1.60 cp -a $src/usr/X11R6/lib/libXvMCNVIDIA.so.$VERSION $fs/usr/lib 1.61 - cp -a $src/usr/X11R6/lib/modules $fs/usr/lib/X11/ 1.62 + cp -a $src/usr/X11R6/lib/modules $fs/usr/lib/X11/ 1.63 cp -a $src/usr/share/applications $fs/usr/share 1.64 - cp -a $src/usr/share/pixmaps $fs/usr/share 1.65 - cp -a $src/usr/share/doc/* $fs/usr/share/doc/$PACKAGE/ 1.66 - cp -a $src/usr/X11R6/lib/* $fs/usr/lib/X11 1.67 + cp -a $src/usr/share/pixmaps $fs/usr/share 1.68 + cp -a $src/usr/share/doc/* $fs/usr/share/doc/$PACKAGE/ 1.69 + cp -a $src/usr/X11R6/lib/* $fs/usr/lib/X11 1.70 1.71 ln -s libcuda.so.$VERSION $fs/usr/lib/libcuda.so 1.72 ln -s libcuda.so.$VERSION $fs/usr/lib/libcuda.so.1 1.73 - ln -s libGL.so.$VERSION $fs/usr/lib/libGL.so 1.74 - ln -s libGL.so.$VERSION $fs/usr/lib/libGL.so.1 1.75 + ln -s libGL.so.$VERSION $fs/usr/lib/libGL.so 1.76 + ln -s libGL.so.$VERSION $fs/usr/lib/libGL.so.1 1.77 + 1.78 # exclude from files.list (for tazpkg's "find-depends") 1.79 - cd $fs/usr/lib 1.80 - for i in $(ls libGL.so*) ; do mv -f $i ${i//./-.-} ; done 1.81 + cd $fs/usr/lib 1.82 + for i in $(ls libGL.so*); do 1.83 + mv -f $i ${i//./-.-} 1.84 + done 1.85 1.86 - ln -s libGLcore.so.$VERSION $fs/usr/lib/libGLcore.so.1 1.87 + ln -s libGLcore.so.$VERSION $fs/usr/lib/libGLcore.so.1 1.88 ln -s libnvidia-cfg.so.$VERSION $fs/usr/lib/libnvidia-cfg.so 1.89 ln -s libnvidia-cfg.so.$VERSION $fs/usr/lib/libnvidia-cfg.so.1 1.90 ln -s libnvidia-tls.so.$VERSION $fs/usr/lib/libnvidia-tls.so.1 1.91 @@ -79,22 +73,26 @@ 1.92 ln -s libXvMCNVIDIA.so.$VERSION $fs/usr/lib/libXvMCNVIDIA_dynamic.so 1.93 ln -s libnvidia-wfb.so.$VERSION $fs/usr/lib/X11/modules/libnvidia-wfb.so 1.94 ln -s libnvidia-wfb.so.$VERSION $fs/usr/lib/X11/modules/libnvidia-wfb.so.1 1.95 - ln -s libglx.so.$VERSION $fs/usr/lib/X11/modules/extensions/libglx.so 1.96 + ln -s libglx.so.$VERSION $fs/usr/lib/X11/modules/extensions/libglx.so 1.97 + 1.98 + DEPENDS="linux xorg-server gtk2 cairo linux-agp xorg-libXv" 1.99 + PROVIDE="nvidia mesa" 1.100 + TAGS="driver graphic video" 1.101 } 1.102 1.103 -pre_install() 1.104 -{ 1.105 +pre_install() { 1.106 title "PROPRIETARY LICENSE" 1.107 echo "You are installing a package with proprietary license." 1.108 echo "You must accept the license." 1.109 footer 1.110 } 1.111 1.112 -post_install() 1.113 -{ 1.114 +post_install() { 1.115 # Restore excluded from files.list (for tazpkg's "find-depends") 1.116 - cd $1/usr/lib 1.117 - for i in $(ls libGL.so*) ; do mv -f $i ${i//-.-/.} ; done 1.118 + cd $1/usr/lib 1.119 + for i in $(ls libGL.so*); do 1.120 + mv -f $i ${i//-.-/.} 1.121 + done 1.122 1.123 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz 1.124