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