summaryrefslogtreecommitdiffstats
path: root/abs/core/nvidia/PKGBUILD
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-04-25 20:35:12 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-04-25 20:35:12 (GMT)
commit145f8ab6194c5d3325088dc7aa471c569d865c7f (patch)
tree476c3991f6a4d8c2e9ee7049cf434d9756136025 /abs/core/nvidia/PKGBUILD
parente23a1e954281b82bff30245921e7ab17610c1e0e (diff)
downloadlinhes_pkgbuild-145f8ab6194c5d3325088dc7aa471c569d865c7f.zip
linhes_pkgbuild-145f8ab6194c5d3325088dc7aa471c569d865c7f.tar.gz
linhes_pkgbuild-145f8ab6194c5d3325088dc7aa471c569d865c7f.tar.bz2
nvidia & nvidia-utils: update to 390.48
Diffstat (limited to 'abs/core/nvidia/PKGBUILD')
-rw-r--r--abs/core/nvidia/PKGBUILD22
1 files changed, 16 insertions, 6 deletions
diff --git a/abs/core/nvidia/PKGBUILD b/abs/core/nvidia/PKGBUILD
index 21247b9..7d3fe9c 100644
--- a/abs/core/nvidia/PKGBUILD
+++ b/abs/core/nvidia/PKGBUILD
@@ -5,17 +5,19 @@
pkgbase=nvidia
pkgname=(nvidia nvidia-dkms)
-pkgver=387.22
+pkgver=390.48
_extramodules=extramodules-4.9-ARCH
-pkgrel=9
+pkgrel=10
pkgdesc="NVIDIA drivers for linux"
arch=('x86_64')
url="http://www.nvidia.com/"
makedepends=('nvidia-libgl' "nvidia-utils=${pkgver}" 'linux' 'linux-headers>=4.9' 'linux-headers<4.10')
license=('custom')
options=('!strip')
-source=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run")
-sha256sums=('2056b386f619ed096ee3c2267c495c6b00d1a2a4c933f0635befcf4e69c3856c')
+source=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run"
+ kernel-4.16.patch)
+sha256sums=('2d4bf72801f101a85df6fd1464021380ad51f5a30df05dadaf1fb546a175a441'
+ '622ac792ec200b2239cb663c0010392118b78c9904973d82cd261165c16d6385')
_pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
@@ -23,6 +25,10 @@ prepare() {
sh "${_pkg}.run" --extract-only
cd "${_pkg}"
+ # Restore phys_to_dma support (still needed for 396.18)
+ # https://bugs.archlinux.org/task/58074
+ patch -Np1 -i ../kernel-4.16.patch
+
cp -a kernel kernel-dkms
cd kernel-dkms
sed -i "s/__VERSION_STRING/${pkgver}/" dkms.conf
@@ -58,7 +64,9 @@ package_nvidia() {
find "${pkgdir}" -name '*.ko' -exec gzip -n {} +
echo "blacklist nouveau" |
- install -Dm644 /dev/stdin "${pkgdir}/usr/lib/modprobe.d/nvidia.conf"
+ install -Dm644 /dev/stdin "${pkgdir}/usr/lib/modprobe.d/${pkgname}.conf"
+
+ install -Dt "${pkgdir}/usr/share/licenses/${pkgname}" -m644 "${srcdir}/${_pkg}/LICENSE"
}
package_nvidia-dkms() {
@@ -74,5 +82,7 @@ package_nvidia-dkms() {
cp -dr --no-preserve='ownership' kernel-dkms "${pkgdir}/usr/src/nvidia-${pkgver}"
echo "blacklist nouveau" |
- install -Dm644 /dev/stdin "${pkgdir}/usr/lib/modprobe.d/nvidia.conf"
+ install -Dm644 /dev/stdin "${pkgdir}/usr/lib/modprobe.d/${pkgname}.conf"
+
+ install -Dt "${pkgdir}/usr/share/licenses/${pkgname}" -m644 "${srcdir}/${_pkg}/LICENSE"
}