wok annotate nvidia/receipt @ rev 1836
Add nvidia,nvidia-glx,nvidia-settings
author | Bill Nagel <b1+slitaz@nagel.org> |
---|---|
date | Wed Dec 10 23:57:23 2008 -0800 (2008-12-10) |
parents | |
children | e2718e4cba26 |
rev | line source |
---|---|
b1+slitaz@1836 | 1 # SliTaz package receipt. |
b1+slitaz@1836 | 2 |
b1+slitaz@1836 | 3 PACKAGE="nvidia" |
b1+slitaz@1836 | 4 VERSION="177.82" |
b1+slitaz@1836 | 5 KERNEL_VERSION="2.6.25.5-slitaz" |
b1+slitaz@1836 | 6 CATEGORY="non-free" |
b1+slitaz@1836 | 7 SHORT_DESC="NVIDIA X.org kernel driver." |
b1+slitaz@1836 | 8 MAINTAINER="b1+slitaz@nagel.org" |
b1+slitaz@1836 | 9 DEPENDS="xorg xorg-server linux-agp" |
b1+slitaz@1836 | 10 TARBALL="NVIDIA-Linux-x86-$VERSION-pkg0.run" |
b1+slitaz@1836 | 11 WEB_SITE="http://www.nvidia.com" |
b1+slitaz@1836 | 12 _WGET_URL="http://us.download.nvidia.com/XFree86/Linux-x86/$VERSION/$TARBALL" |
b1+slitaz@1836 | 13 |
b1+slitaz@1836 | 14 # Rules to configure and make the package. |
b1+slitaz@1836 | 15 compile_rules() |
b1+slitaz@1836 | 16 { |
b1+slitaz@1836 | 17 if [ ! -d $WOK/linux/taz ]; then |
b1+slitaz@1836 | 18 tazwok cook linux |
b1+slitaz@1836 | 19 fi |
b1+slitaz@1836 | 20 if [ ! -f "$SOURCES_REPOSITORY/$TARBALL" ]; then |
b1+slitaz@1836 | 21 cd $SOURCES_REPOSITORY |
b1+slitaz@1836 | 22 download $_WGET_URL |
b1+slitaz@1836 | 23 if [ ! -f "$SOURCES_REPOSITORY/$TARBALL" ]; then |
b1+slitaz@1836 | 24 echo -e "\nDownload failed, exiting. Please check WGET_URL variable.\n" |
b1+slitaz@1836 | 25 exit 1 |
b1+slitaz@1836 | 26 fi |
b1+slitaz@1836 | 27 else |
b1+slitaz@1836 | 28 echo -n "Source tarball exit... " |
b1+slitaz@1836 | 29 status |
b1+slitaz@1836 | 30 fi |
b1+slitaz@1836 | 31 if [ ! -d $src ]; then |
b1+slitaz@1836 | 32 cd $WOK/$PACKAGE |
b1+slitaz@1836 | 33 sh "$SOURCES_REPOSITORY/$TARBALL" --extract-only |
b1+slitaz@1836 | 34 mv "NVIDIA-Linux-x86-$VERSION-pkg0" "$PACKAGE-$VERSION" |
b1+slitaz@1836 | 35 fi |
b1+slitaz@1836 | 36 cd $src/usr/src/nv |
b1+slitaz@1836 | 37 [ ! -f Makefile ] && ln -s Makefile.kbuild Makefile |
b1+slitaz@1836 | 38 make SYSSRC=$(ls -d $WOK/linux/linux-*/) module |
b1+slitaz@1836 | 39 } |
b1+slitaz@1836 | 40 |
b1+slitaz@1836 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
b1+slitaz@1836 | 42 genpkg_rules() |
b1+slitaz@1836 | 43 { |
b1+slitaz@1836 | 44 mkdir -p $fs/lib/modules/$KERNEL_VERSION/kernel/drivers/video |
b1+slitaz@1836 | 45 install -m644 $src/usr/src/nv/nvidia.ko $fs/lib/modules/$KERNEL_VERSION/kernel/drivers/video/ |
b1+slitaz@1836 | 46 mkdir -p $fs/usr/share/doc/nvidia |
b1+slitaz@1836 | 47 cp $src/LICENSE $fs/usr/share/doc/nvidia |
b1+slitaz@1836 | 48 } |
b1+slitaz@1836 | 49 |
b1+slitaz@1836 | 50 # Post install/remove commands for Tazpkg. |
b1+slitaz@1836 | 51 post_install() |
b1+slitaz@1836 | 52 { |
b1+slitaz@1836 | 53 depmod -a -b "$1/" $KERNEL_VERSION |
b1+slitaz@1836 | 54 } |
b1+slitaz@1836 | 55 |
b1+slitaz@1836 | 56 post_remove() |
b1+slitaz@1836 | 57 { |
b1+slitaz@1836 | 58 depmod -a $KERNEL_VERSION |
b1+slitaz@1836 | 59 } |