summaryrefslogtreecommitdiffstats
path: root/abs/core/nvidia
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2014-05-05 20:59:55 (GMT)
committerBritney Fransen <brfransen@gmail.com>2014-05-05 20:59:55 (GMT)
commit94b70fa157c1b96c375ddbf4de906277ade3c2c0 (patch)
tree0fc61ccc1f11ed0550780111b3c5e82eba0fbde4 /abs/core/nvidia
parentd163bad3fb474ab56dde64e433b4677fb387cfe6 (diff)
downloadlinhes_pkgbuild-94b70fa157c1b96c375ddbf4de906277ade3c2c0.zip
linhes_pkgbuild-94b70fa157c1b96c375ddbf4de906277ade3c2c0.tar.gz
linhes_pkgbuild-94b70fa157c1b96c375ddbf4de906277ade3c2c0.tar.bz2
nvidia & nvidia-utils: update to 337.12
Diffstat (limited to 'abs/core/nvidia')
-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"
}