[arch-commits] Commit in nvidia-lts/repos (staging-x86_64 staging-x86_64/PKGBUILD)
Sven-Hendrik Haase
svenstaro at archlinux.org
Tue May 8 02:21:07 UTC 2018
Date: Tuesday, May 8, 2018 @ 02:21:06
Author: svenstaro
Revision: 323479
archrelease: copy trunk to staging-x86_64
Added:
nvidia-lts/repos/staging-x86_64/
nvidia-lts/repos/staging-x86_64/PKGBUILD
(from rev 323478, nvidia-lts/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: nvidia-lts/repos/staging-x86_64/PKGBUILD (from rev 323478, nvidia-lts/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2018-05-08 02:21:06 UTC (rev 323479)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=nvidia-lts
+pkgver=396.24
+_extramodules=extramodules-4.14-lts
+pkgrel=1
+epoch=1
+arch=('x86_64')
+url="http://www.nvidia.com/"
+makedepends=('nvidia-libgl' "nvidia-utils=${pkgver}" 'linux-lts' 'linux-lts-headers>=4.14.39')
+license=('custom')
+options=('!strip')
+_pkg="NVIDIA-Linux-x86_64-${pkgver}"
+source=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/${_pkg}.run")
+sha512sums=('dfe837804d01e903cdf980353add0227362771cd252e4a7d8aff99fc489e5535edfda51ed1a20b9d60e23f1a9e7312f23309c59c67ff0a09a9b9214e52f09077')
+
+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"
+ depends=('linux-lts>=4.14.39' "nvidia-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