void-packages/srcpkgs/nvidia/nvidia-dkms.template
2013-01-16 16:03:46 +01:00

21 lines
630 B
Text

# Template file for 'nvidia-dkms'.
#
short_desc="NVIDIA non free driver for linux -- DKMS kernel module"
nonfree=yes
triggers="dkms"
dkms_modules="nvidia ${version}"
do_install() {
vmkdir usr/src/nvidia-${version}
vcopy "${_pkg}/kernel/*" usr/src/nvidia-${version}
# systemd modules-load.d(5) file.
vmkdir usr/lib/modules-load.d
echo "nvidia" > ${DESTDIR}/usr/lib/modules-load.d/nvidia.conf
chmod 644 ${DESTDIR}/usr/lib/modules-load.d/nvidia.conf
# Blacklist nouveau.
vmkdir usr/lib/modprobe.d
echo "blacklist nouveau" > ${DESTDIR}/usr/lib/modprobe.d/nvidia.conf
chmod 644 ${DESTDIR}/usr/lib/modprobe.d/nvidia.conf
}