wok-next annotate nvidia-glx/receipt @ rev 1837
Fix PROVIDE for nvidia-glx/mesa libgl conflict
author | Bill Nagel <b1+slitaz@nagel.org> |
---|---|
date | Thu Dec 11 05:39:17 2008 -0800 (2008-12-11) |
parents | 46784c9b72e7 |
children | e2718e4cba26 |
rev | line source |
---|---|
b1+slitaz@1836 | 1 # SliTaz package receipt. |
b1+slitaz@1836 | 2 |
b1+slitaz@1836 | 3 PACKAGE="nvidia-glx" |
b1+slitaz@1836 | 4 VERSION="177.82" |
b1+slitaz@1836 | 5 CATEGORY="non-free" |
b1+slitaz@1836 | 6 SHORT_DESC="NVIDIA X.org libraries and utilities" |
b1+slitaz@1836 | 7 MAINTAINER="b1+slitaz@nagel.org" |
b1+slitaz@1836 | 8 DEPENDS="nvidia xorg xorg-server" |
b1+slitaz@1836 | 9 WANTED="nvidia" |
b1+slitaz@1836 | 10 WEB_SITE="http://www.nvidia.com" |
b1+slitaz@1837 | 11 PROVIDE="libgl:nvidia" |
b1+slitaz@1836 | 12 |
b1+slitaz@1836 | 13 # Rules to gen a SliTaz package suitable for Tazpkg. |
b1+slitaz@1836 | 14 genpkg_rules() |
b1+slitaz@1836 | 15 { |
b1+slitaz@1836 | 16 mkdir -p $fs/usr/{bin,lib/tls} |
b1+slitaz@1836 | 17 mkdir -p $fs/usr/lib/X11/modules/{extensions,drivers} |
b1+slitaz@1836 | 18 |
b1+slitaz@1836 | 19 install -m755 $src/usr/lib/lib{GL,GLcore,nvidia-cfg,nvidia-tls}.so.$VERSION $fs/usr/lib |
b1+slitaz@1836 | 20 install -m755 $src/usr/{lib/tls,X11R6/lib}/lib*.so.$VERSION $fs/usr/lib/tls |
b1+slitaz@1836 | 21 install -m755 $src/usr/X11R6/lib/modules/drivers/nvidia_drv.so $fs/usr/lib/X11/modules/drivers |
b1+slitaz@1836 | 22 install -m755 $src/usr/X11R6/lib/modules/extensions/libglx.so.$VERSION $fs/usr/lib/X11/modules/extensions |
b1+slitaz@1836 | 23 |
b1+slitaz@1836 | 24 install -m755 $src/usr/bin/nvidia-xconfig $fs/usr/bin/ |
b1+slitaz@1836 | 25 |
b1+slitaz@1836 | 26 find $fs/ -name \*.so.$VERSION | while read lib; do |
b1+slitaz@1836 | 27 libname=$(basename "$lib") |
b1+slitaz@1836 | 28 (cd $(dirname "$lib") && |
b1+slitaz@1836 | 29 ln -s $libname ${libname%.$VERSION} && |
b1+slitaz@1836 | 30 ln -s $libname ${libname%.$VERSION}.1) |
b1+slitaz@1836 | 31 done |
b1+slitaz@1836 | 32 } |