Date: Monday, September 10, 2018 @ 15:21:55 Author: andyrtr Revision: 334318
archrelease: copy trunk to testing-x86_64 Added: nvidia-390xx-lts/repos/testing-x86_64/ nvidia-390xx-lts/repos/testing-x86_64/PKGBUILD (from rev 334317, nvidia-390xx-lts/trunk/PKGBUILD) ----------+ PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) Copied: nvidia-390xx-lts/repos/testing-x86_64/PKGBUILD (from rev 334317, nvidia-390xx-lts/trunk/PKGBUILD) =================================================================== --- testing-x86_64/PKGBUILD (rev 0) +++ testing-x86_64/PKGBUILD 2018-09-10 15:21:55 UTC (rev 334318) @@ -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.77 +_extramodules=extramodules-4.14-lts +pkgrel=5 +epoch=1 +arch=('x86_64') +url="http://www.nvidia.com/" +makedepends=("nvidia-390xx-utils=${pkgver}" 'linux-lts' 'linux-lts-headers>=4.14.69') +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=('517947c63dceefd4c9ef27226e39abba727baa4e5493543edf2e0d3cd16341b35e90d02b5ec7319e76c75a0adbc4ae451ede5fc48a6fc38cc2823425dfaefd7d') + +_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.69' "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" +}