void-packages/srcpkgs/nvidia/nvidia-opencl.template

32 lines
935 B
Plaintext

# Template file for 'nvidia-opencl'.
#
short_desc="NVIDIA non free driver -- OpenCL implementation"
long_desc="
This package contains the NVIDIA non free OpenCL implementation."
nonfree=yes
provides="libOpenCL-${version}"
replaces="libOpenCL>=0"
do_install() {
cd ${_pkg}
vinstall nvidia.icd 644 etc/OpenCL/vendors
vinstall libOpenCL.so.1.0.0 755 usr/lib
ln -sf libOpenCL.so.1.0.0 ${DESTDIR}/usr/lib/libOpenCL.so
ln -sf libOpenCL.so.1.0.0 ${DESTDIR}/usr/lib/libOpenCL.so.1
vinstall libnvidia-compiler.so.${version} 755 usr/lib
ln -sf libnvidia-compiler.so.${version} \
${DESTDIR}/usr/lib/libnvidia-compiler.so
ln -sf libnvidia-compiler.so.${version} \
${DESTDIR}/usr/lib/libnvidia-compiler.so.1
vinstall libnvidia-opencl.so.${version} 755 usr/lib
ln -sf libnvidia-opencl.so.${version} \
${DESTDIR}/usr/lib/libnvidia-opencl.so
ln -sf libnvidia-opencl.so.${version} \
${DESTDIR}/usr/lib/libnvidia-opencl.so.1
}