summaryrefslogtreecommitdiffstats
path: root/abs/core/nvidia/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/nvidia/PKGBUILD')
-rw-r--r--abs/core/nvidia/PKGBUILD16
1 files changed, 10 insertions, 6 deletions
diff --git a/abs/core/nvidia/PKGBUILD b/abs/core/nvidia/PKGBUILD
index cafec22..30ce01e 100644
--- a/abs/core/nvidia/PKGBUILD
+++ b/abs/core/nvidia/PKGBUILD
@@ -2,7 +2,7 @@
# Maintainer : Thomas Baechler <thomas@archlinux.org>
pkgname=nvidia
-pkgver=331.49
+pkgver=337.12
_extramodules=extramodules-3.13-ARCH
pkgrel=1
pkgdesc="NVIDIA drivers for linux"
@@ -16,14 +16,13 @@ install=nvidia.install
options=(!strip)
source=("ftp://download.nvidia.com/XFree86/Linux-x86/${pkgver}/NVIDIA-Linux-x86-${pkgver}.run"
"ftp://download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run")
-md5sums=('176c77f9a10eaa652860dbc24042bff2'
- 'd0c944466a36cae8b1e23330b27a721c')
+md5sums=('c610d5bff8f7f758dc25fdd51b1b65eb'
+ '4c2aaac75c1ff01a09ac8f4ff84084cd')
[[ "$CARCH" = "i686" ]] && _pkg="NVIDIA-Linux-x86-${pkgver}"
[[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
prepare() {
- cd "${srcdir}"
sh "${_pkg}.run" --extract-only
cd "${_pkg}"
# patches here
@@ -31,15 +30,20 @@ prepare() {
build() {
_kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
- cd "${srcdir}"/"${_pkg}"/kernel
+ cd "${_pkg}"/kernel
+ make SYSSRC=/usr/lib/modules/"${_kernver}/build" module
+
+ cd uvm
make SYSSRC=/usr/lib/modules/"${_kernver}/build" module
}
package() {
install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
"${pkgdir}/usr/lib/modules/${_extramodules}/nvidia.ko"
+ install -D -m644 "${srcdir}/${_pkg}/kernel/uvm/nvidia-uvm.ko" \
+ "${pkgdir}/usr/lib/modules/${_extramodules}/nvidia-uvm.ko"
+ gzip "${pkgdir}/usr/lib/modules/${_extramodules}/"*.ko
install -d -m755 "${pkgdir}/usr/lib/modprobe.d"
echo "blacklist nouveau" >> "${pkgdir}/usr/lib/modprobe.d/nvidia.conf"
sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" "${startdir}/nvidia.install"
- gzip "${pkgdir}/usr/lib/modules/${_extramodules}/nvidia.ko"
}