wok-next diff nvidia-96xx/receipt @ rev 20819
palemoon: remove again -> tomorrow is another day for finding -> fatal error: sys/int_types.h
author | Erkan Yilmaz <erkan@slitaz.org> |
---|---|
date | Wed Jun 13 20:26:17 2018 +0000 (2018-06-13) |
parents | d247e85339a4 |
children | 4e6503d7a19f |
line diff
1.1 --- a/nvidia-96xx/receipt Tue Nov 07 14:03:40 2017 +0200 1.2 +++ b/nvidia-96xx/receipt Wed Jun 13 20:26:17 2018 +0000 1.3 @@ -1,4 +1,4 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="nvidia-96xx" 1.8 VERSION="96.43.23" 1.9 @@ -8,75 +8,75 @@ 1.10 LICENSE="other" 1.11 SHORT_DESC="NVIDIA-legacy drivers (from Geforce MX200 to 7950) (non-free)" 1.12 WEB_SITE="http://www.nvidia.com/" 1.13 -SOURCE="NVIDIA-Linux-x86-${VERSION}-pkg0" 1.14 -TARBALL="${SOURCE}.run" 1.15 + 1.16 +TARBALL="NVIDIA-Linux-x86-${VERSION}-pkg0.run" 1.17 WGET_URL="http://download.nvidia.com/XFree86/Linux-x86/$VERSION/$TARBALL" 1.18 + 1.19 RUN_OPTS="--extract-only" 1.20 -TAGS="drivers graphic video" 1.21 -PROVIDE="mesa" 1.22 +TAZBB_NO_INSTALL="because this is not hardware neutral" 1.23 1.24 -DEPENDS="linux xorg-server gtk+ cairo linux-agp linux-drm" 1.25 BUILD_DEPENDS="linux-module-headers coreutils-file-summarize xz" 1.26 1.27 -# Rules to configure and make the package. 1.28 - 1.29 -compile_rules() 1.30 -{ 1.31 +compile_rules() { 1.32 cd $src/usr/src/nv/ 1.33 # Only use .unblocked_ioctl since 2.6.36 1.34 sed -i 's|\.ioctl|// &|' nv.c 1.35 - make SYSSRC="/usr/src/linux" module 2>&1 | sed s'/ERROR:/error:/' && 1.36 + make SYSSRC="/usr/src/linux" module 2>&1 | sed s'/ERROR:/error:/' || return 1 1.37 + 1.38 xz nvidia.ko 1.39 + mkdir -p \ 1.40 + $install/usr/share/ \ 1.41 + $install/usr/lib/X11/ \ 1.42 + $install/usr/share/licenses/$PACKAGE/ \ 1.43 + $install/usr/share/doc/$PACKAGE/ 1.44 + 1.45 + # Compress and install module 1.46 + install -Dm644 $src/usr/src/nv/nvidia.ko.xz \ 1.47 + $install/lib/modules/$kvers-slitaz/kernel/drivers/video/nvidia.ko.xz 1.48 + 1.49 + cp -a $src/LICENSE $install/usr/share/licenses/$PACKAGE/ 1.50 + cp -a $src/usr/bin $install/usr/ 1.51 + cp -a $src/nvidia-installer $install/usr/bin/ 1.52 + cp -a $src/usr/lib/*.so* $install/usr/lib/ 1.53 + cp -a $src/usr/lib/tls $install/usr/lib/ 1.54 + cp -a $src/usr/share/pixmaps $install/usr/share/ 1.55 + cp -a $src/usr/share/doc/* $install/usr/share/doc/$PACKAGE/ 1.56 + cp -a $src/usr/X11R6/lib/* $install/usr/lib/X11 1.57 + 1.58 + # Links 1.59 + for i in $(find $install -iname *.so*); do 1.60 + ln -s $(basename $i) $(dirname $i)/$(basename ${i/so.$VERSION/so/}) 1.61 + ln -s $(basename $i) $(dirname $i)/$(basename ${i/so.$VERSION/so.1/}) 1.62 + done 1.63 } 1.64 1.65 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.66 -genpkg_rules() 1.67 -{ 1.68 +genpkg_rules() { 1.69 + copy @std 1.70 1.71 - mkdir -p $fs/usr/share $fs/usr/lib/X11 $fs/usr/share/licenses/$PACKAGE 1.72 - mkdir -p $fs/lib/modules/$kvers-slitaz/kernel/drivers/video 1.73 - mkdir -p $fs/usr/share/doc/$PACKAGE 1.74 - 1.75 - # Compress and install module 1.76 - cp $src/usr/src/nv/nvidia.ko.xz \ 1.77 - $fs/lib/modules/$kvers-slitaz/kernel/drivers/video/ 1.78 - 1.79 - chown root $fs/lib/modules/$kvers-slitaz/kernel/drivers/video/nvidia.ko.xz 1.80 - chmod 0644 $fs/lib/modules/$kvers-slitaz/kernel/drivers/video/nvidia.ko.xz 1.81 - 1.82 - cp -a $src/LICENSE $fs/usr/share/licenses/$PACKAGE 1.83 - cp -a $src/usr/bin $fs/usr 1.84 - cp -a $src/nvidia-installer $fs/usr/bin 1.85 - cp -a $src/usr/lib/*.so* $fs/usr/lib/ 1.86 - cp -a $src/usr/lib/tls $fs/usr/lib/ 1.87 - cp -a $src/usr/share/pixmaps $fs/usr/share 1.88 - cp -a $src/usr/share/doc/* $fs/usr/share/doc/$PACKAGE/ 1.89 - cp -a $src/usr/X11R6/lib/* $fs/usr/lib/X11 1.90 - 1.91 - # Links 1.92 - for i in $(find $fs -iname *.so*); do 1.93 - ln -s $(basename $i) $(dirname $i)/$(basename ${i/so.${VERSION}/so/}) 1.94 - ln -s $(basename $i) $(dirname $i)/$(basename ${i/so.${VERSION}/so.1/}) 1.95 - done 1.96 - 1.97 # exclude from files.list (for tazpkg's "find-depends") 1.98 cd $fs/usr/lib 1.99 - for i in $(ls libGL.so*) ; do mv -f $i ${i//./-.-} ; done 1.100 + for i in $(ls libGL.so*); do 1.101 + mv -f $i ${i//./-.-} 1.102 + done 1.103 + 1.104 + DEPENDS="linux xorg-server gtk+ cairo linux-agp linux-drm" 1.105 + PROVIDE="mesa" 1.106 + TAGS="drivers graphic video" 1.107 } 1.108 1.109 -pre_install() 1.110 -{ 1.111 +pre_install() { 1.112 title 'PROPRIETARY LICENSE' 1.113 echo 'You are installing a package with proprietary license.' 1.114 echo 'You must accept the license.' 1.115 footer 1.116 } 1.117 1.118 -post_install() 1.119 -{ 1.120 +post_install() { 1.121 # Restore excluded from files.list (for tazpkg's "find-depends") 1.122 cd $1/usr/lib 1.123 - for i in $(ls libGL.so*) ; do mv -f $i ${i//-.-/.} ; done 1.124 + for i in $(ls libGL.so*); do 1.125 + mv -f $i ${i//-.-/.} 1.126 + done 1.127 1.128 newline 1.129 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz 1.130 @@ -101,4 +101,3 @@ 1.131 fi 1.132 } 1.133 1.134 -TAZBB_NO_INSTALL="because this is not hardware neutral"