# Maintainer: Jerry Xiao # Maintainer: graysky # Contributor: Giancarlo Razzolini # Contributor: Eric BĂ©langer pkgbase=nvidia-340xx-lts pkgname=(nvidia-340xx-lts nvidia-340xx-lts-dkms) pkgver=340.108 pkgrel=1 pkgdesc="NVIDIA drivers for linux-lts, 340xx legacy branch" arch=('x86_64') url="https://www.nvidia.com/" makedepends=("nvidia-340xx-utils=${pkgver}" 'linux-lts>=4.19.79' 'linux-lts-headers>=4.19.79') conflicts=('nvidia-lts') license=('custom') options=(!strip) source=("https://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run" unfuck-340.108-build-fix.patch ) sha256sums=('995d44fef587ff5284497a47a95d71adbee0c13020d615e940ac928f180f5b77' '2b7e3ef24846a40f4492e749be946e4f7f70ebed054bc2c9079f6cbdcbfabe57') _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32" # default is 'linux' substitute custom name here _kernelname=linux-lts _kernver="$(=4.19.72' "nvidia-340xx-utils=$pkgver" 'libgl') install -Dt "${pkgdir}${_extradir}" -m644 \ "${srcdir}/${_pkg}/kernel"/{nvidia,uvm/nvidia-uvm}.ko find "${pkgdir}" -name '*.ko' -exec gzip -n {} + echo "blacklist nouveau" | install -Dm644 /dev/stdin "${pkgdir}/usr/lib/modprobe.d/nvidia-340xx-lts.conf" } package_nvidia-340xx-lts-dkms() { pkgdesc="NVIDIA driver sources for linux-lts, 340xx legacy branch" depends=('dkms' "nvidia-340xx-utils=$pkgver" 'libgl') optdepends=('linux-lts-headers: Build the module for lts kernel') provides=("nvidia-340xx=$pkgver") conflicts+=('nvidia-340xx') cd "${_pkg}" install -dm 755 "${pkgdir}"/usr/src cp -dr --no-preserve='ownership' kernel-dkms "${pkgdir}/usr/src/nvidia-${pkgver}" cat "${pkgdir}"/usr/src/nvidia-${pkgver}/uvm/dkms.conf.fragment >> "${pkgdir}"/usr/src/nvidia-${pkgver}/dkms.conf echo "blacklist nouveau" | install -Dm644 /dev/stdin "${pkgdir}/usr/lib/modprobe.d/${pkgname}.conf" } # vim:set ts=2 sw=2 et: