1 # Contributor: Thomas Baechler <thomas@archlinux.org>
2 # Maintainer: Jonathan Schmidt <j.schmidt@archlinux.us>
4 pkgname=nvidia-96xx-utils-glselect
7 pkgdesc="NVIDIA drivers utilities and libraries with libgl compatibility through glselect."
9 [ "$CARCH" = "i686" ] && ARCH=x86
10 [ "$CARCH" = "x86_64" ] && ARCH=x86_64
11 url="http://www.nvidia.com/"
12 depends=('xorg-server')
13 optdepends=('gtk2: nvidia-settings' 'pkgconfig: nvidia-xconfig')
14 conflicts=('nvidia-96xx-utils')
15 provides=("nvidia-96xx-utils=$pkgver")
17 install=nvidia.install
19 source=("http://download.nvidia.com/XFree86/Linux-${ARCH}/${pkgver}/NVIDIA-Linux-${ARCH}-${pkgver}-pkg0.run" 'glselect')
20 md5sums=('7479b25c747e29af95b9ccf06f43fbf9' '128787899ce0e0c08ae8e129a0663de4')
21 [ "$CARCH" = "x86_64" ] && md5sums=('73e226d4ee0996b6df4bdf44cc1fc6f5' '128787899ce0e0c08ae8e129a0663de4')
25 sh NVIDIA-Linux-${ARCH}-${pkgver}-pkg0.run --extract-only
26 cd NVIDIA-Linux-${ARCH}-${pkgver}-pkg0/usr/
28 mkdir -p $pkgdir/usr/{lib,bin,share/applications,share/pixmaps,share/man/man1}
29 mkdir -p $pkgdir/usr/lib/xorg/modules/{extensions,drivers}
30 mkdir -p $pkgdir/usr/share/licenses/nvidia-96xx/
32 install lib/{libGLcore,libGL,libnvidia-cfg,tls/libnvidia-tls}.so.${pkgver} \
33 $pkgdir/usr/lib/ || return 1
34 install -m644 share/man/man1/* $pkgdir/usr/share/man/man1/ || return 1
35 rm $pkgdir/usr/share/man/man1/nvidia-installer.1.gz || return 1
36 install X11R6/lib/libXv* $pkgdir/usr/lib/ || return 1
37 install -m644 share/applications/nvidia-settings.desktop $pkgdir/usr/share/applications/ || return 1
38 # fix nvidia .desktop file
39 sed -e 's:__UTILS_PATH__:/usr/bin:' -e 's:__PIXMAP_PATH__:/usr/share/pixmaps:' -i $pkgdir/usr/share/applications/nvidia-settings.desktop
40 install -m644 share/pixmaps/nvidia-settings.png $pkgdir/usr/share/pixmaps/ || return 1
41 install X11R6/lib/modules/drivers/nvidia_drv.so $pkgdir/usr/lib/xorg/modules/drivers || return 1
42 install X11R6/lib/modules/extensions/libglx.so.$pkgver $pkgdir/usr/lib/xorg/modules/extensions || return 1
43 install -m755 bin/nvidia-{settings,xconfig,bug-report.sh} $pkgdir/usr/bin/ || return 1
45 ln -s libGLcore.so.$pkgver libGLcore.so.1 || return 1
46 ln -s libnvidia-cfg.so.$pkgver libnvidia-cfg.so.1 || return 1
47 ln -s libnvidia-tls.so.$pkgver libnvidia-tls.so.1 || return 1
48 ln -s libXvMCNVIDIA.so.$pkgver libXvMCNVIDIA_dynamic.so.1 || return 1
50 install -m644 $srcdir/NVIDIA-Linux-${ARCH}-${pkgver}-pkg0/LICENSE $pkgdir/usr/share/licenses/nvidia-96xx/ || return 1
51 ln -s nvidia-96xx $startdir/pkg/usr/share/licenses/nvidia-96xx-utils || return 1
53 install -D -m644 $srcdir/NVIDIA-Linux-${ARCH}-${pkgver}-pkg0/usr/share/doc/README.txt $pkgdir/usr/share/doc/nvidia-96xx/README || return 1
55 find $pkgdir/usr -type d -exec chmod 755 {} \;
56 chmod 644 $pkgdir/usr/lib/libXvMCNVIDIA.a
58 # Allow gl lib link switching with glselect
59 install $srcdir/glselect $pkgdir/usr/bin/ || return 1