Commit 006275e2 authored by Xuetian Weng's avatar Xuetian Weng
Browse files

add egl symlink for nvidia-173xx

parent 702ebe32
......@@ -3,20 +3,28 @@
pkgname=nvidia-173xx-utils
pkgver=173.14.39
pkgrel=3
pkgrel=4
pkgdesc="NVIDIA drivers utilities and libraries, 173xx branch."
arch=('x86_64')
url="http://www.nvidia.com/"
depends=('xorg-server')
conflicts=('nvidia-utils' 'libgl' 'mesa-libgl')
provides=('libgl' 'mesa-libgl')
depends=('xorg-server' 'mesa')
optdepends=('gtk2: nvidia-settings' 'pkgconfig: nvidia-xconfig')
conflicts=('nvidia-utils' 'libgl')
provides=('libgl')
license=('custom')
install=nvidia.install
options=(!strip)
source=("http://us.download.nvidia.com/XFree86/Linux-${arch}/${pkgver}/NVIDIA-Linux-${arch}-${pkgver}-pkg0.run")
md5sums=('0799f194869e40141c7bac8a71762db6')
_mesa_EGL_links() {
for _lib in 'libEGL.so.1.0.0' 'libGLESv1_CM.so.1.1.0' 'libGLESv2.so.2.0.0' ; do
for _sfx in '' '.?.?' '.?.?.?' ; do
ln -s mesa/$_lib ${_lib%$_sfx}
done
done
}
package() {
cd $srcdir
sh NVIDIA-Linux-${arch}-${pkgver}-pkg0.run --extract-only
......@@ -46,6 +54,7 @@ package() {
ln -s libnvidia-tls.so.$pkgver libnvidia-tls.so.1
ln -s libXvMCNVIDIA.so.$pkgver libXvMCNVIDIA_dynamic.so.1
_mesa_EGL_links
cd $pkgdir/usr/lib/xorg/modules
cd $pkgdir/usr/lib/xorg/modules/extensions
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment