2011-01-16 19:44:51 +08:00
|
|
|
# Lib32 Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
|
|
|
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
|
|
|
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
|
|
|
|
|
|
|
|
_pkgbasename=nvidia-utils
|
|
|
|
pkgname=lib32-$_pkgbasename
|
2017-11-05 19:19:06 +08:00
|
|
|
pkgver=387.22
|
|
|
|
pkgrel=1
|
2011-01-16 19:44:51 +08:00
|
|
|
pkgdesc="NVIDIA drivers utilities and libraries. (32-bit)"
|
|
|
|
arch=('x86_64')
|
|
|
|
url="http://www.nvidia.com/"
|
2012-12-07 05:35:54 +08:00
|
|
|
depends=('lib32-libxvmc' 'lib32-zlib' 'lib32-gcc-libs' $_pkgbasename=$pkgver)
|
2011-01-16 19:44:51 +08:00
|
|
|
conflicts=('lib32-libgl')
|
2012-12-22 23:56:17 +08:00
|
|
|
provides=('lib32-libgl')
|
2011-01-16 19:44:51 +08:00
|
|
|
license=('custom')
|
|
|
|
options=('!strip')
|
|
|
|
|
2011-07-22 19:01:59 +08:00
|
|
|
_filearch='x86'
|
|
|
|
_pkg="NVIDIA-Linux-${_filearch}-${pkgver}"
|
|
|
|
source=("http://us.download.nvidia.com/XFree86/Linux-${_filearch}/${pkgver}/${_pkg}.run")
|
2017-11-05 19:19:06 +08:00
|
|
|
md5sums=('abdbb3c813e52148f7435308121e6a37')
|
2011-01-16 19:44:51 +08:00
|
|
|
|
|
|
|
build() {
|
2011-07-22 19:01:59 +08:00
|
|
|
cd $srcdir
|
|
|
|
sh ${_pkg}.run --extract-only
|
2011-01-16 19:44:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2011-07-22 19:01:59 +08:00
|
|
|
cd $srcdir/${_pkg}
|
2011-01-16 19:44:51 +08:00
|
|
|
|
2017-11-05 19:19:06 +08:00
|
|
|
# GLX extension module for X - useless ?
|
|
|
|
install -D -m755 "libglx.so.${pkgver}" "${pkgdir}/usr/lib32/nvidia/xorg/modules/extensions/libglx.so.${pkgver}"
|
|
|
|
ln -s "libglx.so.${pkgver}" "${pkgdir}/usr/lib32/nvidia/xorg/modules/extensions/libglx.so" # X doesn't find glx otherwise
|
|
|
|
install -D -m755 "libGLX_nvidia.so.${pkgver}" "${pkgdir}/usr/lib32/libGLX_nvidia.so.${pkgver}"
|
|
|
|
# now in lib32-mesa driver
|
|
|
|
#ln -s "libGLX_nvidia.so.${pkgver}" "${pkgdir}/usr/lib32/libGLX_indirect.so.0"
|
|
|
|
|
|
|
|
# Wayland stuff
|
|
|
|
install -D -m755 "libnvidia-egl-wayland.so.1.0.2" "${pkgdir}/usr/lib32/libnvidia-egl-wayland.so.1.0.2"
|
|
|
|
ln -s "libnvidia-egl-wayland.so.1.0.2" "${pkgdir}/usr/lib32/libnvidia-egl-wayland.so.1"
|
|
|
|
|
|
|
|
# OpenGL libraries
|
|
|
|
install -D -m755 "libEGL_nvidia.so.${pkgver}" "${pkgdir}/usr/lib32/libEGL_nvidia.so.${pkgver}"
|
|
|
|
install -D -m755 "libGLESv1_CM_nvidia.so.${pkgver}" "${pkgdir}/usr/lib32/libGLESv1_CM_nvidia.so.${pkgver}"
|
|
|
|
install -D -m755 "libGLESv2_nvidia.so.${pkgver}" "${pkgdir}/usr/lib32/libGLESv2_nvidia.so.${pkgver}"
|
|
|
|
|
2011-07-22 19:01:59 +08:00
|
|
|
# OpenGL core library
|
2017-11-05 19:19:06 +08:00
|
|
|
install -D -m755 "libnvidia-glcore.so.${pkgver}" "${pkgdir}/usr/lib32/libnvidia-glcore.so.${pkgver}"
|
|
|
|
install -D -m755 "libnvidia-eglcore.so.${pkgver}" "${pkgdir}/usr/lib32/libnvidia-eglcore.so.${pkgver}"
|
|
|
|
install -D -m755 "libnvidia-glsi.so.${pkgver}" "${pkgdir}/usr/lib32/libnvidia-glsi.so.${pkgver}"
|
|
|
|
|
|
|
|
# misc
|
|
|
|
install -D -m755 "libnvidia-ifr.so.${pkgver}" "${pkgdir}/usr/lib32/libnvidia-ifr.so.${pkgver}"
|
|
|
|
install -D -m755 "libnvidia-fbc.so.${pkgver}" "${pkgdir}/usr/lib32/libnvidia-fbc.so.${pkgver}"
|
|
|
|
install -D -m755 "libnvidia-encode.so.${pkgver}" "${pkgdir}/usr/lib32/libnvidia-encode.so.${pkgver}"
|
|
|
|
install -D -m755 "libnvidia-cfg.so.${pkgver}" "${pkgdir}/usr/lib32/libnvidia-cfg.so.${pkgver}"
|
|
|
|
install -D -m755 "libnvidia-ml.so.${pkgver}" "${pkgdir}/usr/lib32/libnvidia-ml.so.${pkgver}"
|
|
|
|
install -D -m755 "libnvidia-wfb.so.${pkgver}" "${pkgdir}/usr/lib32/libnvidia-wfb.so.${pkgver}"
|
|
|
|
|
2011-07-22 19:01:59 +08:00
|
|
|
# VDPAU
|
2017-11-05 19:19:06 +08:00
|
|
|
install -D -m755 "libvdpau_nvidia.so.${pkgver}" "${pkgdir}/usr/lib32/vdpau/libvdpau_nvidia.so.${pkgver}"
|
|
|
|
|
2011-07-22 19:01:59 +08:00
|
|
|
# nvidia-tls library
|
2017-11-05 19:19:06 +08:00
|
|
|
install -D -m755 "libnvidia-tls.so.${pkgver}" "${pkgdir}/usr/lib32/libnvidia-tls.so.${pkgver}"
|
|
|
|
install -D -m755 "tls/libnvidia-tls.so.${pkgver}" "${pkgdir}/usr/lib32/tls/libnvidia-tls.so.${pkgver}"
|
|
|
|
|
|
|
|
# CUDA
|
|
|
|
install -D -m755 "libcuda.so.${pkgver}" "${pkgdir}/usr/lib32/libcuda.so.${pkgver}"
|
|
|
|
install -D -m755 "libnvcuvid.so.${pkgver}" "${pkgdir}/usr/lib32/libnvcuvid.so.${pkgver}"
|
|
|
|
|
|
|
|
# PTX JIT Compiler (Parallel Thread Execution (PTX) is a pseudo-assembly language for CUDA)
|
|
|
|
install -D -m755 "libnvidia-ptxjitcompiler.so.${pkgver}" "${pkgdir}/usr/lib32/libnvidia-ptxjitcompiler.so.${pkgver}"
|
2011-01-16 19:44:51 +08:00
|
|
|
|
2017-11-05 19:19:06 +08:00
|
|
|
# Fat (multiarchitecture) binary loader
|
|
|
|
install -D -m755 "libnvidia-fatbinaryloader.so.${pkgver}" "${pkgdir}/usr/lib32/libnvidia-fatbinaryloader.so.${pkgver}"
|
2011-05-02 19:51:20 +08:00
|
|
|
|
2017-11-05 19:19:06 +08:00
|
|
|
# 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}"
|
|
|
|
|
2011-07-22 19:01:59 +08:00
|
|
|
# create soname links
|
|
|
|
for _lib in $(find $pkgdir -name '*.so*'); do
|
|
|
|
_soname="$(dirname ${_lib})/$(readelf -d "$_lib" | sed -nr 's/.*Library soname: \[(.*)\].*/\1/p')"
|
|
|
|
if [ ! -e "${_soname}" ]; then
|
|
|
|
ln -s "$(basename ${_lib})" "${_soname}"
|
|
|
|
ln -s "$(basename ${_soname})" "${_soname/.[0-9]*/}"
|
|
|
|
fi
|
|
|
|
done
|
2011-01-16 19:44:51 +08:00
|
|
|
|
2011-07-22 19:01:59 +08:00
|
|
|
rm -rf "${pkgdir}"/usr/{include,share,bin}
|
|
|
|
mkdir -p "$pkgdir/usr/share/licenses"
|
|
|
|
ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
|
2011-01-16 19:44:51 +08:00
|
|
|
}
|