Commit eca455e3 authored by Chaoting Liu's avatar Chaoting Liu

update nvidia drivers for core

parent 30a3818e
Pipeline #1409 passed with stages
in 7 minutes and 14 seconds
# Contributions from AUR file: https://aur.archlinux.org/packages/lib32-nvidia-utils-304xx/
_pkgbasename=nvidia-304xx-utils
pkgname=('lib32-nvidia-304xx-utils' 'lib32-opencl-nvidia-304xx')
pkgver=304.135
pkgrel=2
pkgdesc="NVIDIA drivers utilities and libraries. (32-bit)"
arch=('x86_64')
url="http://www.nvidia.com/"
depends=('lib32-libxvmc' 'lib32-zlib' 'lib32-gcc-libs' "nvidia-304xx-utils=${pkgver}")
conflicts=('lib32-libgl')
provides=('lib32-libgl')
license=('custom')
options=('!strip')
_parch='x86'
_pkg="NVIDIA-Linux-${_parch}-${pkgver}"
source=("ftp://download.nvidia.com/XFree86/Linux-${_parch}/${pkgver}/${_pkg}.run")
md5sums=('0e2082ae8490b135eb306befe6db56e1')
create_links() {
# create soname links
for _lib in $(find "${pkgdir}" -name '*.so*' | grep -v 'xorg/'); do
_soname=$(dirname "${_lib}")/$(readelf -d "${_lib}" | grep -Po 'SONAME.*: \[\K[^]]*' || true)
_base=$(echo ${_soname} | sed -r 's/(.*).so.*/\1.so/')
[[ -e "${_soname}" ]] || ln -s $(basename "${_lib}") "${_soname}"
[[ -e "${_base}" ]] || ln -s $(basename "${_soname}") "${_base}"
done
}
build() {
cd "${srcdir}"
sh ${_pkg}.run --extract-only
}
package_lib32-opencl-nvidia-304xx() {
pkgdesc="OpenCL implemention for NVIDIA (32-bit)"
depends=('lib32-zlib' 'lib32-gcc-libs' 'opencl-nvidia-304xx')
optdepends=('opencl-headers: headers necessary for OpenCL development')
conflicts=('lib32-opencl-nvidia')
provides=('lib32-opencl-driver')
cd ${_pkg}
# OpenCL
install -D -m755 "libnvidia-compiler.so.${pkgver}" "${pkgdir}/usr/lib32/libnvidia-compiler.so.${pkgver}"
install -D -m755 "libnvidia-opencl.so.${pkgver}" "${pkgdir}/usr/lib32/libnvidia-opencl.so.${pkgver}"
create_links
mkdir -p "${pkgdir}/usr/share/licenses"
ln -s $_pkgbasename "${pkgdir}/usr/share/licenses/lib32-opencl-nvidia"
}
package_lib32-nvidia-304xx-utils() {
pkgdesc="NVIDIA drivers utilities (32-bit)"
depends=('lib32-libxvmc' 'lib32-zlib' 'lib32-gcc-libs' 'lib32-libxext' 'lib32-mesa' 'nvidia-304xx-utils')
optdepends=('lib32-opencl-nvidia-304xx')
conflicts=('lib32-nvidia-304xx-libgl' 'lib32-nvidia-340xx-utils' 'lib32-nvidia-utils')
provides=('lib32-libgl' 'lib32-libegl' 'lib32-libgles' 'lib32-nvidia-304xx-libgl')
replaces=('lib32-nvidia-304xx-libgl')
cd ${_pkg}
# OpenGL libraries
install -D -m755 "libGL.so.${pkgver}" "${pkgdir}/usr/lib32/nvidia/libGL.so.${pkgver}"
# OpenGL core library
install -D -m755 "libnvidia-glcore.so.${pkgver}" "${pkgdir}/usr/lib32/nvidia/libnvidia-glcore.so.${pkgver}"
# XvMC
install -D -m755 "libXvMCNVIDIA.so.${pkgver}" "${pkgdir}/usr/lib32/nvidia/libXvMCNVIDIA.so.${pkgver}"
# VDPAU
install -D -m755 "libvdpau_nvidia.so.${pkgver}" "${pkgdir}/usr/lib32/vdpau/libvdpau_nvidia.so.${pkgver}"
# nvidia-tls library
install -D -m755 "tls/libnvidia-tls.so.${pkgver}" "${pkgdir}/usr/lib32/nvidia/libnvidia-tls.so.${pkgver}"
install -D -m755 "libnvidia-cfg.so.${pkgver}" "${pkgdir}/usr/lib32/nvidia/libnvidia-cfg.so.${pkgver}"
install -D -m755 "libnvidia-ml.so.${pkgver}" "${pkgdir}/usr/lib32/nvidia/libnvidia-ml.so.${pkgver}"
# CUDA
install -D -m755 "libcuda.so.${pkgver}" "${pkgdir}/usr/lib32/nvidia/libcuda.so.${pkgver}"
install -D -m755 "libnvcuvid.so.${pkgver}" "${pkgdir}/usr/lib32/nvidia/libnvcuvid.so.${pkgver}"
# DEBUG
install -D -m755 nvidia-debugdump "${pkgdir}/usr/bin/nvidia-debugdump"
# We have to provide symlinks to mesa, as nvidia 304xx doesn't ship them
ln -s /usr/lib32/mesa/libEGL.so.1.0.0 "${pkgdir}/usr/lib32/nvidia/libEGL.so.1.0.0"
ln -s libEGL.so.1.0.0 "${pkgdir}/usr/lib32/nvidia/libEGL.so.1"
ln -s libEGL.so.1.0.0 "${pkgdir}/usr/lib32/nvidia/libEGL.so"
ln -s /usr/lib32/mesa/libGLESv1_CM.so.1.1.0 "${pkgdir}/usr/lib32/nvidia/libGLESv1_CM.so.1.1.0"
ln -s libGLESv1_CM.so.1.1.0 "${pkgdir}/usr/lib32/nvidia/libGLESv1_CM.so.1"
ln -s libGLESv1_CM.so.1.1.0 "${pkgdir}/usr/lib32/nvidia/libGLESv1_CM.so"
ln -s /usr/lib32/mesa/libGLESv2.so.2.0.0 "${pkgdir}/usr/lib32/nvidia/libGLESv2.so.2.0.0"
ln -s libGLESv2.so.2.0.0 "${pkgdir}/usr/lib32/nvidia/libGLESv2.so.2"
ln -s libGLESv2.so.2.0.0 "${pkgdir}/usr/lib32/nvidia/libGLESv2.so"
install -dm 755 "${pkgdir}"/etc/ld.so.conf.d
echo -e '/usr/lib32/nvidia/' > "${pkgdir}"/etc/ld.so.conf.d/00-lib32-nvidia.conf
create_links
rm -rf "${pkgdir}"/usr/{include,share,bin}
mkdir -p "${pkgdir}/usr/share/licenses"
ln -s $_pkgbasename "${pkgdir}/usr/share/licenses/${pkgname}"
}
_pkgbasename=nvidia-340xx-utils
pkgbase=lib32-$_pkgbasename
pkgname=('lib32-nvidia-340xx-utils' 'lib32-opencl-nvidia-340xx')
pkgver=340.102
pkgrel=2
pkgver=340.107
pkgrel=1
arch=('x86_64')
url="http://www.nvidia.com/"
license=('custom')
......@@ -10,8 +10,8 @@ options=('!strip')
_ARCH='x86'
_pkg="NVIDIA-Linux-${_ARCH}-${pkgver}"
source=("ftp://download.nvidia.com/XFree86/Linux-${_ARCH}/${pkgver}/${_pkg}.run")
md5sums=('61aad6a98238bc61466e6a9e392cfd08')
source=("https://us.download.nvidia.com/XFree86/Linux-${_ARCH}/${pkgver}/${_pkg}.run")
md5sums=('9a4b382ef545d836033630224735d5dd')
create_links() {
# create soname links
......
......@@ -3,7 +3,7 @@
_pkgbasename=nvidia-390xx-utils
pkgbase=lib32-$_pkgbasename
pkgname=('lib32-nvidia-390xx-utils' 'lib32-opencl-nvidia-390xx')
pkgver=390.77
pkgver=390.87
pkgrel=1
arch=('x86_64')
url="http://www.nvidia.com/"
......@@ -14,7 +14,7 @@ options=('!strip')
_arch='x86'
_pkg="NVIDIA-Linux-${_arch}-${pkgver}"
source=("https://us.download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
sha512sums=('470e1e71079f4838bc842c2779f7c32c26c37ff30a0d3719d9e534ff0b71775fdf40446766c06505bffc404bfd6871e4f101de4727380418dda0d084e5637bf8')
sha512sums=('18c5ef058098c0f055bada06888ee07da4d1455d90d393357483c289eab27969d49a593318d28e535941e7ebacde33e349f3a1cb2f7c627366ba5c6b7835ccbd')
create_links() {
# create soname links
......
......@@ -3,7 +3,7 @@
_pkgbasename=nvidia-utils
pkgbase=lib32-$_pkgbasename
pkgname=('lib32-nvidia-utils' 'lib32-opencl-nvidia')
pkgver=396.51
pkgver=410.57
pkgrel=1
arch=('x86_64')
url="http://www.nvidia.com/"
......@@ -11,7 +11,7 @@ license=('custom')
options=('!strip')
_pkg="NVIDIA-Linux-x86_64-${pkgver}"
source=("https://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/${_pkg}.run")
sha512sums=('961c1a5b27a0f6cb54e387133a8d4038ddda0df39e70e84a637d8d64eaeb4ec937e37d6a737179d72750785614d20ade5e99f0668e3d53fef2cfa70241de4fe3')
sha512sums=('2ba6b4b7829410152e0fa57772969ca59f134995ef93d08c12cc6a7a97e081c1d718600a25f541444ce66603ed84b99e66b0ced6fb773ca40f98cd5dc1348d79')
create_links() {
# create soname links
......
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