[arch-commits] Commit in nvidia-390xx-lts/repos (2 files)
Christian Hesse
eworm at archlinux.org
Mon May 28 11:11:10 UTC 2018
Date: Monday, May 28, 2018 @ 11:11:09
Author: eworm
Revision: 325076
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 325075, nvidia-390xx-lts/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: nvidia-390xx-lts/repos/staging-x86_64/PKGBUILD (from rev 325075, nvidia-390xx-lts/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2018-05-28 11:11:09 UTC (rev 325076)
@@ -0,0 +1,45 @@
+# $Id: PKGBUILD 323392 2018-05-05 18:28:00Z andyrtr $
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=nvidia-390xx-lts
+pkgver=390.59
+_extramodules=extramodules-4.14-lts
+pkgrel=2
+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"
+}
More information about the arch-commits
mailing list