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