Date: Friday, May 18, 2018 @ 14:10:06 Author: svenstaro Revision: 324513
archrelease: copy trunk to staging-x86_64 Added: nvidia-390xx-lts/repos/staging-x86_64/ nvidia-390xx-lts/repos/staging-x86_64/PKGBUILD (from rev 324512, nvidia-390xx-lts/trunk/PKGBUILD) ----------+ PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) Copied: nvidia-390xx-lts/repos/staging-x86_64/PKGBUILD (from rev 324512, nvidia-390xx-lts/trunk/PKGBUILD) =================================================================== --- staging-x86_64/PKGBUILD (rev 0) +++ staging-x86_64/PKGBUILD 2018-05-18 14:10:06 UTC (rev 324513) @@ -0,0 +1,45 @@ +# $Id: PKGBUILD 323392 2018-05-05 18:28:00Z andyrtr $ +# Maintainer: Eric BĂ©langer <e...@archlinux.org> + +pkgname=nvidia-390xx-lts +pkgver=390.59 +_extramodules=extramodules-4.14-lts +pkgrel=1 +epoch=1 +arch=('x86_64') +url="http://www.nvidia.com/" +makedepends=("nvidia-390xx-utils=${pkgver}" 'linux-lts' 'linux-lts-headers>=4.14.39') +provides=('nvidia-390xx') +conflicts=('nvidia-lts') +license=('custom') +options=('!strip') +source=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run") +sha512sums=('65b92ec7f9488a98a8579efcf5b00aca42945b1d0fd0f58aacebf45c772b0b896af8bbac3abec126a931752ef9504a727fac89220c115ff474c0521f3c214d99') + +_pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32" + +prepare() { + sh "${_pkg}.run" --extract-only + cd "${_pkg}" +} + +build() { + _kernver="$(cat /usr/lib/modules/${_extramodules}/version)" + cd "${_pkg}"/kernel + make SYSSRC=/usr/lib/modules/"${_kernver}/build" module +} + +package() { + pkgdesc="NVIDIA drivers for linux-lts, 390xx legacy branch" + depends=('linux-lts>=4.14.39' "nvidia-390xx-utils=${pkgver}" 'libgl') + + install -Dt "${pkgdir}/usr/lib/modules/${_extramodules}" -m644 \ + "${srcdir}/${_pkg}/kernel"/nvidia{,-modeset,-drm,-uvm}.ko + + find "${pkgdir}" -name '*.ko' -exec gzip -n {} + + + echo "blacklist nouveau" | + install -Dm644 /dev/stdin "${pkgdir}/usr/lib/modprobe.d/${pkgname}.conf" + + install -Dt "${pkgdir}/usr/share/licenses/${pkgname}" -m644 "${srcdir}/${_pkg}/LICENSE" +}