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