wok-stable diff 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
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/nvidia/receipt	Wed Dec 10 23:57:23 2008 -0800
     1.3 @@ -0,0 +1,59 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="nvidia"
     1.7 +VERSION="177.82"
     1.8 +KERNEL_VERSION="2.6.25.5-slitaz"
     1.9 +CATEGORY="non-free"
    1.10 +SHORT_DESC="NVIDIA X.org kernel driver."
    1.11 +MAINTAINER="b1+slitaz@nagel.org"
    1.12 +DEPENDS="xorg xorg-server linux-agp"
    1.13 +TARBALL="NVIDIA-Linux-x86-$VERSION-pkg0.run"
    1.14 +WEB_SITE="http://www.nvidia.com"
    1.15 +_WGET_URL="http://us.download.nvidia.com/XFree86/Linux-x86/$VERSION/$TARBALL"
    1.16 +
    1.17 +# Rules to configure and make the package.
    1.18 +compile_rules()
    1.19 +{
    1.20 +  if [ ! -d $WOK/linux/taz ]; then
    1.21 +    tazwok cook linux
    1.22 +  fi
    1.23 +  if [ ! -f "$SOURCES_REPOSITORY/$TARBALL" ]; then
    1.24 +    cd $SOURCES_REPOSITORY
    1.25 +    download $_WGET_URL
    1.26 +    if [ ! -f "$SOURCES_REPOSITORY/$TARBALL" ]; then
    1.27 +      echo -e "\nDownload failed, exiting. Please check WGET_URL variable.\n"
    1.28 +      exit 1
    1.29 +    fi
    1.30 +  else
    1.31 +    echo -n "Source tarball exit... "
    1.32 +    status
    1.33 +  fi
    1.34 +  if [ ! -d $src ]; then
    1.35 +    cd $WOK/$PACKAGE
    1.36 +    sh "$SOURCES_REPOSITORY/$TARBALL" --extract-only
    1.37 +    mv "NVIDIA-Linux-x86-$VERSION-pkg0" "$PACKAGE-$VERSION"
    1.38 +  fi
    1.39 +  cd $src/usr/src/nv
    1.40 +  [ ! -f Makefile ] && ln -s Makefile.kbuild Makefile
    1.41 +  make SYSSRC=$(ls -d $WOK/linux/linux-*/) module
    1.42 +}
    1.43 +
    1.44 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.45 +genpkg_rules()
    1.46 +{
    1.47 +  mkdir -p $fs/lib/modules/$KERNEL_VERSION/kernel/drivers/video
    1.48 +  install -m644 $src/usr/src/nv/nvidia.ko $fs/lib/modules/$KERNEL_VERSION/kernel/drivers/video/
    1.49 +  mkdir -p $fs/usr/share/doc/nvidia
    1.50 +  cp $src/LICENSE $fs/usr/share/doc/nvidia
    1.51 +}
    1.52 +
    1.53 +# Post install/remove commands for Tazpkg.
    1.54 +post_install()
    1.55 +{
    1.56 +  depmod -a -b "$1/" $KERNEL_VERSION
    1.57 +}
    1.58 +
    1.59 +post_remove()
    1.60 +{
    1.61 +  depmod -a $KERNEL_VERSION
    1.62 +}