[arch-commits] Commit in nvidia-390xx-lts/repos (extra-x86_64 extra-x86_64/PKGBUILD)
Sven-Hendrik Haase
svenstaro at archlinux.org
Tue May 8 01:52:23 UTC 2018
Date: Tuesday, May 8, 2018 @ 01:52:22
Author: svenstaro
Revision: 323475
archrelease: copy trunk to extra-x86_64
Added:
nvidia-390xx-lts/repos/extra-x86_64/
nvidia-390xx-lts/repos/extra-x86_64/PKGBUILD
(from rev 323474, nvidia-390xx-lts/trunk/PKGBUILD)
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Copied: nvidia-390xx-lts/repos/extra-x86_64/PKGBUILD (from rev 323474, nvidia-390xx-lts/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD (rev 0)
+++ extra-x86_64/PKGBUILD 2018-05-08 01:52:22 UTC (rev 323475)
@@ -0,0 +1,43 @@
+# $Id: PKGBUILD 323392 2018-05-05 18:28:00Z andyrtr $
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=nvidia-390xx-lts
+pkgver=390.48
+_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')
+license=('custom')
+options=('!strip')
+source=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run")
+sha512sums=('40e1f991d931d5ea1eccda68bffa7bd872eb75c158c6a54f84b5a24274112b9a26e68caeecf6ca0e543edcec917a5ed717bd83281c4a86ac649d3c73f1386966')
+
+_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"
+}
More information about the arch-commits
mailing list