nvidia: update to 304.48 again, create same symlinks than nvidia-installer.
This commit is contained in:
parent
b6c912eaac
commit
461eceb151
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'nvidia'
|
||||
pkgname=nvidia
|
||||
version=304.43
|
||||
version=304.48
|
||||
revision=1
|
||||
short_desc="NVIDIA drivers for linux"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
|
@ -19,11 +19,11 @@ depends="nvidia-dkms>=${version}_${revision}"
|
|||
if [ "${XBPS_MACHINE}" = "i686" ]; then
|
||||
_pkg="NVIDIA-Linux-x86-${version}"
|
||||
distfiles="ftp://download.nvidia.com/XFree86/Linux-x86/${version}/${_pkg}.run"
|
||||
checksum=7c7f483302a0a5a828b8ef1f5a4a53f8e16d3b73d0c17bd61ed0d843cad32c4c
|
||||
checksum=af25dab21e7f06e34cc63fb06f427c0e8de110f66b25fd571cd814a9525513b8
|
||||
else
|
||||
_pkg="NVIDIA-Linux-x86_64-${version}-no-compat32"
|
||||
distfiles="ftp://download.nvidia.com/XFree86/Linux-x86_64/${version}/${_pkg}.run"
|
||||
checksum=31b911f5bbd7c3ca3f1320f7f5fa60f193601f4af333f3322ee0987721edcd54
|
||||
checksum=691200dfcb7f29fb351b208485bf8f5a9f80b1ddf38b9e0369ec531754d4a721
|
||||
fi
|
||||
|
||||
do_extract() {
|
||||
|
@ -45,23 +45,41 @@ do_install() {
|
|||
# OpenGL library
|
||||
vinstall libGL.so.${version} 755 usr/lib libGL-nvidia.so.${version}
|
||||
|
||||
for f in libnvidia-glcore libXvMCNVIDIA libvdpau_nvidia libnvidia-tls \
|
||||
libnvidia-cfg libnvidia-ml libcuda libnvcuvid; do
|
||||
if [ "${f}" = "libvdpau_nvidia" ]; then
|
||||
_dir="usr/lib/vdpau"
|
||||
else
|
||||
_dir="usr/lib"
|
||||
fi
|
||||
if [ -e "${f}.so.${version}" ]; then
|
||||
vinstall ${f}.so.${version} 755 ${_dir}
|
||||
elif [ -e "tls/${f}.so.${version}" ]; then
|
||||
vinstall tls/${f}.so.${version} 755 ${_dir}
|
||||
fi
|
||||
ln -sfr ${DESTDIR}/${_dir}/${f}.so.${version} \
|
||||
${DESTDIR}/${_dir}/${f}.so
|
||||
ln -sfr ${DESTDIR}/${_dir}/${f}.so.${version} \
|
||||
${DESTDIR}/${_dir}/${f}.so.1
|
||||
done
|
||||
# OpenGL core library
|
||||
vinstall libnvidia-glcore.so.${version} 755 usr/lib
|
||||
ln -sf libnvidia-glcore.so.${version} ${DESTDIR}/usr/lib/libnvidia-glcore.so
|
||||
|
||||
# XvMC
|
||||
vinstall libXvMCNVIDIA.a 644 usr/lib
|
||||
vinstall libXvMCNVIDIA.so.${version} 755 usr/lib
|
||||
ln -sf libXvMCNVIDIA.so.${version} ${DESTDIR}/usr/lib/libXvMCNVIDIA_dynamic.so
|
||||
ln -sf libXvMCNVIDIA.so.${version} ${DESTDIR}/usr/lib/libXvMCNVIDIA_dynamic.so.1
|
||||
|
||||
# VDPAU
|
||||
vinstall libvdpau_nvidia.so.${version} 755 usr/lib/vdpau
|
||||
ln -sf libvdpau_nvidia.so.${version} ${DESTDIR}/usr/lib/vdpau/libvdpau_nvidia.so
|
||||
ln -sf libvdpau_nvidia.so.${version} ${DESTDIR}/usr/lib/vdpau/libvdpau_nvidia.so.1
|
||||
|
||||
# nvidia-tls library
|
||||
vinstall tls/libnvidia-tls.so.${version} 755 usr/lib
|
||||
ln -sf libnvidia-tls.so.${version} ${DESTDIR}/usr/lib/libnvidia-tls.so
|
||||
|
||||
vinstall libnvidia-cfg.so.${version} 755 usr/lib
|
||||
ln -sf libnvidia-cfg.so.${version} ${DESTDIR}/usr/lib/libnvidia-cfg.so
|
||||
ln -sf libnvidia-cfg.so.${version} ${DESTDIR}/usr/lib/libnvidia-cfg.so.1
|
||||
|
||||
vinstall libnvidia-ml.so.${version} 755 usr/lib
|
||||
ln -sf libnvidia-ml.so.${version} ${DESTDIR}/usr/lib/libnvidia-ml.so
|
||||
ln -sf libnvidia-ml.so.${version} ${DESTDIR}/usr/lib/libnvidia-ml.so.1
|
||||
|
||||
# CUDA
|
||||
vinstall libcuda.so.${version} 755 usr/lib
|
||||
ln -sf libcuda.so.${version} ${DESTDIR}/usr/lib/libcuda.so
|
||||
ln -sf libcuda.so.${version} ${DESTDIR}/usr/lib/libcuda.so.1
|
||||
|
||||
vinstall libnvcuvid.so.${version} 755 usr/lib
|
||||
ln -sf libnvcuvid.so.${version} ${DESTDIR}/usr/lib/libnvcuvid.so
|
||||
ln -sf libnvcuvid.so.${version} ${DESTDIR}/usr/lib/libnvcuvid.so.1
|
||||
|
||||
# nvidia-xconfig
|
||||
vinstall nvidia-xconfig 755 usr/bin
|
||||
|
|
Loading…
Reference in New Issue