1 # Maintainer : Dan Vratil <vratil@progdansoft.com>
2 # Contributors: Jeremy Sands <cto@jeremysands.com>
3 # Thomas Baechler <thomas@archlinux.org>
4 # James Rayner <iphitus@gmail.com>
5 # Erik Hardesty <dalingrin@gmail.com>
6 # josephgbr <rafael.f.f1@gmail.com>
8 pkgname=lib32-nvidia-utils-beta
11 pkgdesc="NVIDIA drivers utilities and libraries. (32 bit)"
13 url="http://www.nvidia.com/"
14 license=('custom:NVIDIA')
16 depends=('lib32-libxext' 'lib32-zlib' 'lib32-gcc-libs')
17 conflicts=('lib32-libgl' 'lib32-ati-fglrx-utils' 'lib32-nvidia-utils')
18 provides=('lib32-libgl' "lib32-nvidia-utils=${pkgver}")
19 source=(ftp://download.nvidia.com/XFree86/Linux-x86/${pkgver}/NVIDIA-Linux-x86-${pkgver}.run)
24 if [ -d NVIDIA-Linux-x86-${pkgver} ]; then
25 rm -rf NVIDIA-Linux-x86-${pkgver};
29 sh NVIDIA-Linux-x86-${pkgver}.run --extract-only
33 cd $srcdir/NVIDIA-Linux-x86-${pkgver}
36 install -D -m755 libGL.so.$pkgver $pkgdir/usr/lib32/libGL.so.$pkgver
38 install -D -m755 libnvidia-glcore.so.$pkgver $pkgdir/usr/lib32/libnvidia-glcore.so.$pkgver
40 install -D -m644 libXvMCNVIDIA.a $pkgdir/usr/lib32/libXvMCNVIDIA.a
41 install -D -m755 libXvMCNVIDIA.so.$pkgver $pkgdir/usr/lib32/libXvMCNVIDIA.so.$pkgver
43 install -D -m755 libvdpau_nvidia.so.$pkgver $pkgdir/usr/lib32/vdpau/libvdpau_nvidia.so.$pkgver
45 install -D -m755 libcuda.so.$pkgver $pkgdir/usr/lib32/libcuda.so.$pkgver
46 install -D -m755 libnvcuvid.so.$pkgver $pkgdir/usr/lib32/libnvcuvid.so.$pkgver
48 install -D -m755 tls/libnvidia-tls.so.$pkgver $pkgdir/usr/lib32/libnvidia-tls.so.$pkgver
50 install -D -m755 libnvidia-compiler.so.$pkgver $pkgdir/usr/lib32/libnvidia-compiler.so.$pkgver
51 install -D -m755 libOpenCL.so.1.0.0 $pkgdir/usr/lib32/libOpenCL.so.1.0.0
53 install -D -m755 libnvidia-cfg.so.$pkgver $pkgdir/usr/lib32/libnvidia-cfg.so.$pkgver
54 install -D -m755 libnvidia-ml.so.$pkgver $pkgdir/usr/lib32/libnvidia-ml.so.$pkgver
57 for _lib in $(find $pkgdir -name '*.so*'); do
58 _soname="$(dirname ${_lib})/$(readelf -d "$_lib" | sed -nr 's/.*Library soname: \[(.*)\].*/\1/p')"
59 if [ ! -e "${_soname}" ]; then
60 ln -s "$(basename ${_lib})" "${_soname}"
61 ln -s "$(basename ${_soname})" "${_soname/.[0-9]*/}"
65 rm -rf "${pkgdir}"/usr/{include,share,bin}
66 mkdir -p "$pkgdir/usr/share/licenses"
67 ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
70 md5sums=('cd0a20afd4d891adb884b9ad054fa2b6')