diff options
author | Jonathan Yantis | 2015-06-11 09:00:57 -0700 |
---|---|---|
committer | Jonathan Yantis | 2015-06-11 09:00:57 -0700 |
commit | a7859bc41e5238c6bd50397d9fe647344e349d04 (patch) | |
tree | 76510c78cd05d5e0a66a270afa927ac43a210b00 | |
download | aur-nvidia-346xx-dkms.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 26 | ||||
-rw-r--r-- | PKGBUILD | 61 | ||||
-rw-r--r-- | linux3.18.patch | 13 | ||||
-rw-r--r-- | nvidia-dkms.install | 17 |
4 files changed, 117 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..28b888724cf0 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,26 @@ +pkgbase = nvidia-346xx-dkms + pkgdesc = NVIDIA kernel module sources (DKMS) 346 Series + pkgver = 346.59 + pkgrel = 1 + url = http://www.nvidia.com/ + install = nvidia-dkms.install + arch = i686 + arch = x86_64 + license = custom + depends = dkms + depends = nvidia-346xx-utils + optdepends = linux-headers: Build the module for Arch kernel + optdepends = linux-lts-headers: Build the module for LTS Arch kernel + provides = nvidia + provides = nvidia-dkms + conflicts = nvidia + conflicts = nvidia-dkms + source = linux3.18.patch + sha256sums = 63a52af60e2ee36a2efa41022780802de7eec5b315aa1580a2fa1eb208d8fa87 + source_i686 = http://us.download.nvidia.com/XFree86/Linux-x86/346.59/NVIDIA-Linux-x86-346.59.run + sha256sums_i686 = 65cf83fccc02399d54212cbeea1c2364e4974687c3ad6cba87cc109476ad2129 + source_x86_64 = http://us.download.nvidia.com/XFree86/Linux-x86_64/346.59/NVIDIA-Linux-x86_64-346.59-no-compat32.run + sha256sums_x86_64 = 4c7941e9248a931b720f050c38822708aa8176c4464fc40d02e1c7dd7ebbe767 + +pkgname = nvidia-346xx-dkms + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2a8b1aa49268 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,61 @@ +# Maintainer: jyantis <yantis@yantis.net> +# Contributor: Maxime Gauduin <alucryd@archlinux.org> +# Contributor: jarda-wien <xstej70@gmail.com> +# Contributor: Jason Melton <jason.melton@gmail.com> +# Contributor: Atilla ÖNTAŞ <tarakbumba@gmail.com> + +# NOTE: THIS IS JUST nvidia-dkms for the 346xx series +# https://aur.archlinux.org/packages/nvidia-dkms/ + +pkgname=nvidia-346xx-dkms +pkgver=346.59 +pkgrel=1 +pkgdesc='NVIDIA kernel module sources (DKMS) 346 Series' +arch=('i686' 'x86_64') +url='http://www.nvidia.com/' +license=('custom') +depends=('dkms' "nvidia-346xx-utils") +optdepends=('linux-headers: Build the module for Arch kernel' + 'linux-lts-headers: Build the module for LTS Arch kernel') +provides=('nvidia' 'nvidia-dkms') +conflicts=('nvidia' 'nvidia-dkms') +install='nvidia-dkms.install' +source=('linux3.18.patch') + +source_i686=("http://us.download.nvidia.com/XFree86/Linux-x86/${pkgver}/NVIDIA-Linux-x86-${pkgver}.run") +source_x86_64=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run") +sha256sums=('63a52af60e2ee36a2efa41022780802de7eec5b315aa1580a2fa1eb208d8fa87') +sha256sums_i686=('65cf83fccc02399d54212cbeea1c2364e4974687c3ad6cba87cc109476ad2129') +sha256sums_x86_64=('4c7941e9248a931b720f050c38822708aa8176c4464fc40d02e1c7dd7ebbe767') + +[[ $CARCH == i686 ]] && _pkg=NVIDIA-Linux-x86-${pkgver} +[[ $CARCH == x86_64 ]] && _pkg=NVIDIA-Linux-x86_64-${pkgver}-no-compat32 + +prepare() { + if [[ -d ${_pkg} ]] ; then + rm -rf ${_pkg} + fi + + sh ${_pkg}.run --extract-only + + cd ${_pkg} + + patch -Np0 -i ../linux3.18.patch + + if [[ $CARCH == x86_64 ]]; then + cat kernel/uvm/dkms.conf.fragment >> kernel/dkms.conf + fi +} + +package() { + cd ${_pkg} + + install -dm 755 "${pkgdir}"/usr/{lib/modprobe.d,share/licenses,src} + cp -dr --no-preserve='ownership' kernel "${pkgdir}"/usr/src/nvidia-${pkgver} + + echo 'blacklist nouveau' > "${pkgdir}"/usr/lib/modprobe.d/nvidia.conf + + ln -s nvidia "${pkgdir}"/usr/share/licenses/nvidia-dkms +} + +# vim: ts=2 sw=2 et: diff --git a/linux3.18.patch b/linux3.18.patch new file mode 100644 index 000000000000..1e3b96a96194 --- /dev/null +++ b/linux3.18.patch @@ -0,0 +1,13 @@ +--- kernel/nv-drm.c~ ++++ kernel/nv-drm.c +@@ -129,6 +129,10 @@ static struct drm_driver nv_drm_driver = { + .gem_prime_vmap = nv_gem_prime_vmap, + .gem_prime_vunmap = nv_gem_prime_vunmap, + ++#if defined(NV_DRM_DRM_GEM_H_PRESENT) ++ .set_busid = drm_pci_set_busid, ++#endif ++ + .name = "nvidia-drm", + .desc = "NVIDIA DRM driver", + .date = "20130102", diff --git a/nvidia-dkms.install b/nvidia-dkms.install new file mode 100644 index 000000000000..357c8c0a1e66 --- /dev/null +++ b/nvidia-dkms.install @@ -0,0 +1,17 @@ +post_install() { + dkms install -m nvidia/${1%-*} +} + +pre_upgrade() { + pre_remove ${2} +} + +post_upgrade() { + post_install ${1} +} + +pre_remove() { + dkms remove -m nvidia/${1%-*} --all +} + +# vim: ts=2 sw=2 et: |