blob: f82194f118c3dca4427ddd240e0f411269a5eac9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
|
# Maintainer : Daniel Bermond < gmail-com: danielbermond >
# Contributor: Det <nimetonmaili g-mail>
# Based on nvidia-beta-all: https://aur.archlinux.org/packages/nvidia-beta-all/,
# nvidia-utils-beta: https://aur.archlinux.org/packages/nvidia-utils-beta/ and
# lib32-nvidia-utils-beta: https://aur.archlinux.org/packages/lib32-nvidia-utils-beta/
# Build the lib32 packages too? This only needs to be defined once and will
# remain until the packages are removed. "1" to enable.
_lib32=0
pkgbase=nvidia-full-beta-all
pkgname=('nvidia-full-beta-all' 'nvidia-utils-full-beta-all' 'nvidia-egl-wayland-full-beta-all' 'nvidia-libgl-full-beta-all' 'opencl-nvidia-full-beta-all')
pkgver=410.73
pkgrel=2
pkgdesc='Full NVIDIA driver package for all kernels on the system (drivers, utilities and libraries) (beta version)'
arch=('x86_64')
url='http://www.nvidia.com/'
license=('custom:NVIDIA')
makedepends=('linux-headers')
options=('!strip')
# installer name
_pkg="NVIDIA-Linux-${CARCH}-${pkgver}-no-compat32"
if [ "$_lib32" = '1' ] || pacman -Q lib32-nvidia-utils-full-beta-all >/dev/null 2>&1
then
pkgname+=('lib32-nvidia-utils-full-beta-all' 'lib32-nvidia-libgl-full-beta-all' 'lib32-opencl-nvidia-full-beta-all')
_pkg="NVIDIA-Linux-${CARCH}-${pkgver}"
fi
# source
source=("http://us.download.nvidia.com/XFree86/Linux-${CARCH}/${pkgver}/${_pkg}.run"
'nvidia-drm-outputclass.conf'
'nvidia-utils-full-beta-all.sysusers'
'linux-4.16.patch')
sha256sums=('7d6b6c9931f8b89404149a5fdf7a580edae0cd567cc2d4ffe3823b1af02a705d'
'089d6dc247c9091b320c418b0d91ae6adda65e170934d178cdd4e9bd0785b182'
'd8d1caa5d72c71c6430c2a0d9ce1a674787e9272ccce28b9d5898ca24e60a167'
'622ac792ec200b2239cb663c0010392118b78c9904973d82cd261165c16d6385')
[ "$_pkg" = "NVIDIA-Linux-${CARCH}-${pkgver}" ] && sha256sums[0]='bebc9cf781201beb5ec1a1dde7672db68609b8af0aa5ff32daa3ebb533c2ff1e'
_eglver=1.1.0
# create missing soname links
_create_links() {
local _lib
local _soname
local _base
for _lib in $(find "$pkgdir" -name '*.so*' | grep -v 'xorg/')
do
# get soname/base name
_soname="$(dirname "$_lib")/$(readelf -d "$_lib" | grep -Po 'SONAME.*: \[\K[^]]*' || true)"
_base="$(echo "$_soname" | sed -r 's/(.*).so.*/\1.so/')"
# create missing links
[ -e "$_soname" ] || ln -s "$(basename "$_lib")" "$_soname"
[ -e "$_base" ] || ln -s "$(basename "$_soname")" "$_base"
done
}
prepare() {
local _kernel
# extract the source file
[ -d "$_pkg" ] && rm -rf "$_pkg"
printf '%s\n' " -> Self-Extracting ${_pkg}.run..."
sh "${_pkg}.run" --extract-only
cd "${_pkg}"
bsdtar -xf nvidia-persistenced-init.tar.bz2
sed -i 's/__NV_VK_ICD__/libGLX_nvidia.so.0/' nvidia_icd.json.template
# create a build directory for each installed kernel
for _kernel in $(cat /usr/lib/modules/extramodules-*/version)
do
cp -a kernel "kernel-${_kernel}"
printf '%s\n' " -> Applying patch(es) for kernel ${_kernel}..."
cd "kernel-${_kernel}"
# restore phys_to_dma support
# https://bugs.archlinux.org/task/58074
patch -Np2 -i "${srcdir}/linux-4.16.patch"
cd ..
done
}
build() {
local _kernel
for _kernel in $(cat /usr/lib/modules/extramodules-*/version)
do
cd "${srcdir}/${_pkg}/kernel-${_kernel}"
printf '%s\n' " -> Building Nvidia module for ${_kernel}..."
make SYSSRC="/usr/lib/modules/${_kernel}/build" module
done
}
package_opencl-nvidia-full-beta-all() {
pkgdesc="NVIDIA's OpenCL implemention for 'nvidia-utils-full-beta-all'"
depends=('zlib')
optdepends=('opencl-headers: headers necessary for OpenCL development')
provides=("opencl-nvidia=${pkgver}" 'opencl-driver')
conflicts=('opencl-nvidia')
cd "$_pkg"
# libraries
install -D -m755 "libnvidia-compiler.so.${pkgver}" -t "${pkgdir}/usr/lib"
install -D -m755 "libnvidia-opencl.so.${pkgver}" -t "${pkgdir}/usr/lib"
_create_links
# vendor icd
install -D -m644 nvidia.icd -t "${pkgdir}/etc/OpenCL/vendors"
# license
install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
package_nvidia-libgl-full-beta-all() {
pkgdesc="NVIDIA driver library symlinks for 'nvidia-utils-full-beta-all'"
depends=('nvidia-utils-full-beta-all')
provides=("nvidia-libgl=${pkgver}" 'libgl' 'libegl' 'libgles')
conflicts=('nvidia-libgl' 'libgl' 'libegl' 'libgles')
cd "$_pkg"
mkdir -p "${pkgdir}/usr/lib/"
# libGL (link)
ln -s /usr/lib/nvidia/libGL.so.1.7.0 "${pkgdir}/usr/lib/libGL.so.1"
ln -s libGL.so.1 "${pkgdir}/usr/lib/libGL.so"
# EGL (link)
ln -s /usr/lib/nvidia/libEGL.so.1.1.0 "${pkgdir}/usr/lib/libEGL.so.1"
ln -s libEGL.so.1 "${pkgdir}/usr/lib/libEGL.so"
# OpenGL ES 1 (link)
ln -s /usr/lib/nvidia/libGLESv1_CM.so.1.2.0 "${pkgdir}/usr/lib/libGLESv1_CM.so.1"
ln -s libGLESv1_CM.so.1 "${pkgdir}/usr/lib/libGLESv1_CM.so"
# OpenGL ES 2 (link)
ln -s /usr/lib/nvidia/libGLESv2.so.2.1.0 "${pkgdir}/usr/lib/libGLESv2.so.2"
ln -s libGLESv2.so.2 "${pkgdir}/usr/lib/libGLESv2.so"
# license
install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
package_nvidia-egl-wayland-full-beta-all() {
pkgdesc="NVIDIA EGL Wayland library (libnvidia-egl-wayland.so.${_eglver}) for 'nvidia-utils-full-beta-all'"
depends=('nvidia-utils-full-beta-all')
provides=('egl-wayland')
conflicts=('egl-wayland')
cd "$_pkg"
# libraries
install -D -m755 "libnvidia-egl-wayland.so.${_eglver}" -t "${pkgdir}/usr/lib"
ln -s "libnvidia-egl-wayland.so.${_eglver}" "${pkgdir}/usr/lib/libnvidia-egl-wayland.so"
ln -s "libnvidia-egl-wayland.so.${_eglver}" "${pkgdir}/usr/lib/libnvidia-egl-wayland.so.1"
# license
install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
package_nvidia-utils-full-beta-all() {
pkgdesc="NVIDIA driver utilities and libraries for 'nvidia-full-beta-all'"
depends=('xorg-server' 'mesa>=17.0.2-2')
optdepends=('gtk2: nvidia-settings (GTK+ v2)'
'gtk3: nvidia-settings (GTK+ v3)'
'opencl-nvidia-full-beta-all: OpenCL support'
'xorg-server-devel: nvidia-xconfig'
"egl-wayland-git: for alternative, more advanced Wayland library (libnvidia-egl-wayland.so.${_eglver})")
provides=("nvidia-utils=${pkgver}" "nvidia-settings=${pkgver}" 'libglvnd' 'vulkan-driver')
conflicts=('nvidia-utils' 'nvidia-settings' 'libglvnd')
install=nvidia-utils-full-beta-all.install
cd "$_pkg"
##### LIBRARIES AND COMPONENTS #####
# X driver
install -D -m755 nvidia_drv.so -t "${pkgdir}/usr/lib/xorg/modules/drivers/"
# GLX extension for X
install -D -m755 "libglxserver_nvidia.so.${pkgver}" -t "${pkgdir}/usr/lib/nvidia/xorg"
ln -s "libglxserver_nvidia.so.${pkgver}" "${pkgdir}/usr/lib/nvidia/xorg/libglxserver_nvidia.so.1" # X doesn't find glx otherwise
ln -s "libglxserver_nvidia.so.${pkgver}" "${pkgdir}/usr/lib/nvidia/xorg/libglxserver_nvidia.so" # X doesn't find glx otherwise
# X wrapped software rendering
install -D -m755 "libnvidia-wfb.so.${pkgver}" -t "${pkgdir}/usr/lib"
# libGL & OpenGL
install -D -m755 libGL.so.1.7.0 -t "${pkgdir}/usr/lib/nvidia"
install -D -m755 libGLdispatch.so.0 -t "${pkgdir}/usr/lib"
install -D -m755 "libnvidia-glcore.so.${pkgver}" -t "${pkgdir}/usr/lib"
install -D -m755 libOpenGL.so.0 -t "${pkgdir}/usr/lib"
install -D -m755 "libnvidia-glvkspirv.so.${pkgver}" -t "${pkgdir}/usr/lib"
# GLX
install -D -m755 libGLX.so.0 -t "${pkgdir}/usr/lib"
install -D -m755 "libGLX_nvidia.so.${pkgver}" -t "${pkgdir}/usr/lib"
# now in mesa driver
#ln -s "libGLX_nvidia.so.${pkgver}" "${pkgdir}/usr/lib/libGLX_indirect.so.0"
# EGL
install -D -m755 libEGL.so.1.1.0 -t "${pkgdir}/usr/lib/nvidia"
install -D -m755 "libEGL_nvidia.so.${pkgver}" -t "${pkgdir}/usr/lib"
install -D -m755 "libnvidia-eglcore.so.${pkgver}" -t "${pkgdir}/usr/lib"
install -D -m644 10_nvidia.json -t "${pkgdir}/usr/share/glvnd/egl_vendor.d"
install -D -m644 10_nvidia_wayland.json -t "${pkgdir}/usr/share/egl/egl_external_platform.d"
# OpenGL ES
install -D -m755 libGLESv1_CM.so.1.2.0 -t "${pkgdir}/usr/lib/nvidia"
install -D -m755 "libGLESv1_CM_nvidia.so.${pkgver}" -t "${pkgdir}/usr/lib"
install -D -m755 libGLESv2.so.2.1.0 -t "${pkgdir}/usr/lib/nvidia"
install -D -m755 "libGLESv2_nvidia.so.${pkgver}" -t "${pkgdir}/usr/lib"
install -D -m755 "libnvidia-glsi.so.${pkgver}" -t "${pkgdir}/usr/lib"
# VDPAU (Video Decode and Presentation API for Unix)
install -D -m755 "libvdpau_nvidia.so.${pkgver}" -t "${pkgdir}/usr/lib/vdpau"
# GPU-accelerated video encoding
install -D -m755 "libnvidia-encode.so.${pkgver}" -t "${pkgdir}/usr/lib"
# GTK+ for nvidia-settings
install -D -m755 "libnvidia-gtk2.so.${pkgver}" -t "${pkgdir}/usr/lib"
install -D -m755 "libnvidia-gtk3.so.${pkgver}" -t "${pkgdir}/usr/lib"
# component of nvidia-xconfig
install -D -m755 "libnvidia-cfg.so.${pkgver}" -t "${pkgdir}/usr/lib"
# CUDA (Compute Unified Device Architecture) (perform traditional CPU calculations with the GPU)
install -D -m755 "libcuda.so.${pkgver}" -t "${pkgdir}/usr/lib"
install -D -m755 "libnvcuvid.so.${pkgver}" -t "${pkgdir}/usr/lib"
# PTX JIT Compiler (Parallel Thread Execution (PTX) is a pseudo-assembly language for CUDA)
install -D -m755 "libnvidia-ptxjitcompiler.so.${pkgver}" -t "${pkgdir}/usr/lib"
# Fat (multiarchitecture) binary loader
install -D -m755 "libnvidia-fatbinaryloader.so.${pkgver}" -t "${pkgdir}/usr/lib"
# TLS (Thread local storage) support for OpenGL libs
install -D -m755 "libnvidia-tls.so.${pkgver}" -t "${pkgdir}/usr/lib" # classic
install -D -m755 "tls/libnvidia-tls.so.${pkgver}" -t "${pkgdir}/usr/lib/tls" # new
# GPU monitoring and management (1/2)
install -D -m755 "libnvidia-ml.so.${pkgver}" -t "${pkgdir}/usr/lib"
# vulkan icd
install -D -m644 nvidia_icd.json.template "${pkgdir}/usr/share/vulkan/icd.d/nvidia_icd.json"
# vulkan real-time ray tracing extensions (VK_NV_raytracing)
install -D -m755 "libnvidia-rtcore.so.${pkgver}" -t "${pkgdir}/usr/lib"
install -D -m755 "libnvidia-cbl.so.${pkgver}" -t "${pkgdir}/usr/lib"
# helper libs for approved partners GRID remote apps
install -D -m755 "libnvidia-ifr.so.${pkgver}" -t "${pkgdir}/usr/lib"
install -D -m755 "libnvidia-fbc.so.${pkgver}" -t "${pkgdir}/usr/lib"
# OptiX ray tracing engine
install -D -m755 "libnvoptix.so.${pkgver}" -t "${pkgdir}/usr/lib"
_create_links
##### BINARIES AND MANPAGES #####
# CUDA MPS (Multi Process Service)
install -D -m755 nvidia-cuda-mps-server -t "${pkgdir}/usr/bin"
install -D -m755 nvidia-cuda-mps-control -t "${pkgdir}/usr/bin"
install -D -m644 nvidia-cuda-mps-control.1.gz -t "${pkgdir}/usr/share/man/man1"
# for loading the kernel module and creating the character device files
install -D -m4755 nvidia-modprobe -t "${pkgdir}/usr/bin"
install -D -m644 nvidia-modprobe.1.gz -t "${pkgdir}/usr/share/man/man1"
# daemon for maintaining persistent software state in the driver
install -D -m755 nvidia-persistenced -t "$pkgdir/usr/bin"
install -D -m644 nvidia-persistenced.1.gz -t "$pkgdir/usr/share/man/man1"
install -D -m644 nvidia-persistenced-init/systemd/nvidia-persistenced.service.template \
"${pkgdir}/usr/lib/systemd/system/nvidia-persistenced.service"
sed -i 's/__USER__/nvidia-persistenced/' "${pkgdir}/usr/lib/systemd/system/nvidia-persistenced.service"
# GUI for configuring the driver
install -D -m755 nvidia-settings -t "${pkgdir}/usr/bin"
install -D -m644 nvidia-settings.1.gz -t "${pkgdir}/usr/share/man/man1"
install -D -m644 nvidia-settings.png -t "${pkgdir}/usr/share/pixmaps"
install -D -m644 nvidia-settings.desktop -t "${pkgdir}/usr/share/applications"
sed -e 's:__UTILS_PATH__:/usr/bin:' \
-e 's:__PIXMAP_PATH__:/usr/share/pixmaps:' \
-i "${pkgdir}/usr/share/applications/nvidia-settings.desktop"
# GPU monitoring and management (2/2)
install -D -m755 nvidia-smi -t "${pkgdir}/usr/bin"
install -D -m644 nvidia-smi.1.gz -t "${pkgdir}/usr/share/man/man1"
# basic control over configuration options in the driver
install -D -m755 nvidia-xconfig -t "${pkgdir}/usr/bin"
install -D -m644 nvidia-xconfig.1.gz -t "${pkgdir}/usr/share/man/man1"
# debugging and bug reporting
install -D -m755 nvidia-bug-report.sh -t "${pkgdir}/usr/bin"
install -D -m755 nvidia-debugdump -t "${pkgdir}/usr/bin"
##### MISCELLANEOUS #####
# vendor profiles
install -D -m644 "nvidia-application-profiles-${pkgver}-rc" -t "${pkgdir}/usr/share/nvidia"
install -D -m644 "nvidia-application-profiles-${pkgver}-key-documentation" -t "${pkgdir}/usr/share/nvidia"
# documentation
install -D -m644 README.txt "${pkgdir}/usr/share/doc/${pkgname}/README"
install -D -m644 NVIDIA_Changelog -t "${pkgdir}/usr/share/doc/${pkgname}"
cp -a html "${pkgdir}/usr/share/doc/${pkgname}"
# distro-specific files must be installed in /usr/share/X11/xorg.conf.d
install -D -m644 "${srcdir}/nvidia-drm-outputclass.conf" "${pkgdir}/usr/share/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf"
# sysusers
install -D -m644 "${srcdir}/nvidia-utils-full-beta-all.sysusers" -t "${pkgdir}/usr/lib/sysusers.d"
# license
install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
package_nvidia-full-beta-all() {
depends=("nvidia-utils-full-beta-all>=${pkgver}" 'libgl')
provides=("nvidia=${pkgver}" "nvidia-beta=${pkgver}")
conflicts=('nvidia')
local _dir
local _kernel
for _dir in $(find /usr/lib/modules -maxdepth 1 -type d -name 'extramodules-*')
do
_kernel="$(cat "${_dir}/version")"
install -D -m644 "${_pkg}/kernel-${_kernel}/"nvidia{,-drm,-modeset,-uvm}.ko -t "${pkgdir}/${_dir}"
gzip -n "${pkgdir}/${_dir}/"*.ko
done
printf '%s\n' 'blacklist nouveau' | install -D -m644 /dev/stdin "${pkgdir}/usr/lib/modprobe.d/nvidia.conf"
install -D -m644 "${_pkg}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
package_lib32-opencl-nvidia-full-beta-all() {
pkgdesc="NVIDIA's OpenCL implemention for 'lib32-nvidia-utils-full-beta-all' "
depends=('lib32-zlib' 'lib32-gcc-libs')
optdepends=('opencl-headers: headers necessary for OpenCL development')
provides=("lib32-opencl-nvidia=${pkgver}" 'lib32-opencl-driver')
conflicts=('lib32-opencl-nvidia')
cd "$_pkg"
# libraries
install -D -m755 "32/libnvidia-compiler.so.${pkgver}" -t "${pkgdir}/usr/lib32"
install -D -m755 "32/libnvidia-opencl.so.${pkgver}" -t "${pkgdir}/usr/lib32"
_create_links
# license
install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
package_lib32-nvidia-libgl-full-beta-all() {
pkgdesc="NVIDIA driver library symlinks for 'lib32-nvidia-utils-full-beta-all'"
depends=('lib32-nvidia-utils-full-beta-all' 'nvidia-libgl-full-beta-all')
provides=("lib32-nvidia-libgl=${pkgver}" 'lib32-libgl' 'lib32-libegl' 'lib32-libgles')
conflicts=('lib32-nvidia-libgl' 'lib32-libgl' 'lib32-libegl' 'lib32-libgles')
replaces=('lib32-nvidia-utils<=313.26-1')
cd "$_pkg"
mkdir -p "${pkgdir}/usr/lib32/"
# libGL (link)
ln -s /usr/lib32/nvidia/libGL.so.1.7.0 "${pkgdir}/usr/lib32/libGL.so.1"
ln -s libGL.so.1 "${pkgdir}/usr/lib32/libGL.so"
# EGL (link)
ln -s /usr/lib32/nvidia/libEGL.so.1.1.0 "${pkgdir}/usr/lib32/libEGL.so.1"
ln -s libEGL.so.1 "${pkgdir}/usr/lib32/libEGL.so"
# OpenGL ES 1 (link)
ln -s /usr/lib32/nvidia/libGLESv1_CM.so.1.2.0 "${pkgdir}/usr/lib32/libGLESv1_CM.so.1"
ln -s libGLESv1_CM.so.1 "${pkgdir}/usr/lib32/libGLESv1_CM.so"
# OpenGL ES 2 (link)
ln -s /usr/lib32/nvidia/libGLESv2.so.2.1.0 "${pkgdir}/usr/lib32/libGLESv2.so.2"
ln -s libGLESv2.so.2 "${pkgdir}/usr/lib32/libGLESv2.so"
# license
install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
package_lib32-nvidia-utils-full-beta-all() {
pkgdesc="NVIDIA driver utilities and libraries for 'nvidia-full-beta-all' (32-bit)"
depends=('lib32-zlib' 'lib32-gcc-libs' 'nvidia-utils-full-beta-all' 'lib32-mesa>=17.0.2-1')
optdepends=('lib32-opencl-nvidia-full-beta-all: OpenCL support')
provides=("lib32-nvidia-utils=${pkgver}" 'lib32-libglvnd' 'lib32-vulkan-driver')
conflicts=('lib32-nvidia-utils' 'lib32-libglvnd')
cd "${_pkg}/32"
# libGL & OpenGL
install -D -m755 libGL.so.1.7.0 -t "${pkgdir}/usr/lib32/nvidia"
install -D -m755 libGLdispatch.so.0 -t "${pkgdir}/usr/lib32"
install -D -m755 "libnvidia-glcore.so.${pkgver}" -t "${pkgdir}/usr/lib32"
install -D -m755 libOpenGL.so.0 -t "${pkgdir}/usr/lib32"
install -D -m755 "libnvidia-glvkspirv.so.${pkgver}" -t "${pkgdir}/usr/lib32"
# GLX
install -D -m755 libGLX.so.0 -t "${pkgdir}/usr/lib32"
install -D -m755 "libGLX_nvidia.so.${pkgver}" -t "${pkgdir}/usr/lib32"
# now in lib32-mesa driver
#ln -s "libGLX_nvidia.so.${pkgver}" "${pkgdir}/usr/lib32/libGLX_indirect.so.0"
# EGL
install -D -m755 libEGL.so.1.1.0 -t "${pkgdir}/usr/lib32/nvidia"
install -D -m755 "libEGL_nvidia.so.${pkgver}" -t "${pkgdir}/usr/lib32"
install -D -m755 "libnvidia-eglcore.so.${pkgver}" -t "${pkgdir}/usr/lib32"
# OpenGL ES
install -D -m755 libGLESv1_CM.so.1.2.0 -t "${pkgdir}/usr/lib32/nvidia"
install -D -m755 "libGLESv1_CM_nvidia.so.${pkgver}" -t "${pkgdir}/usr/lib32"
install -D -m755 libGLESv2.so.2.1.0 -t "${pkgdir}/usr/lib32/nvidia"
install -D -m755 "libGLESv2_nvidia.so.${pkgver}" -t "${pkgdir}/usr/lib32"
install -D -m755 "libnvidia-glsi.so.${pkgver}" -t "${pkgdir}/usr/lib32"
# VDPAU (Video Decode and Presentation API for Unix)
install -D -m755 "libvdpau_nvidia.so.${pkgver}" -t "${pkgdir}/usr/lib32/vdpau"
# GPU-accelerated video encoding
install -D -m755 "libnvidia-encode.so.${pkgver}" -t "${pkgdir}/usr/lib32"
# CUDA (Compute Unified Device Architecture) (perform traditional CPU calculations with the GPU)
install -D -m755 "libcuda.so.${pkgver}" -t "${pkgdir}/usr/lib32"
install -D -m755 "libnvcuvid.so.${pkgver}" -t "${pkgdir}/usr/lib32"
# PTX JIT Compiler (Parallel Thread Execution (PTX) is a pseudo-assembly language for CUDA)
install -D -m755 "libnvidia-ptxjitcompiler.so.${pkgver}" -t "${pkgdir}/usr/lib32"
# Fat (multiarchitecture) binary loader
install -D -m755 "libnvidia-fatbinaryloader.so.${pkgver}" -t "${pkgdir}/usr/lib32"
# TLS (Thread local storage) support for OpenGL libs
install -D -m755 "libnvidia-tls.so.${pkgver}" -t "${pkgdir}/usr/lib32" # classic
install -D -m755 "tls/libnvidia-tls.so.$pkgver" -t "${pkgdir}/usr/lib32/tls" # new
# GPU monitoring and management
install -D -m755 "libnvidia-ml.so.${pkgver}" -t "${pkgdir}/usr/lib32"
# helper libs for approved partners GRID remote apps
install -D -m755 "libnvidia-ifr.so.${pkgver}" -t "${pkgdir}/usr/lib32"
install -D -m755 "libnvidia-fbc.so.${pkgver}" -t "${pkgdir}/usr/lib32"
_create_links
# license
cd "${srcdir}/${_pkg}"
install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|