mirror of
https://github.com/archlinux/aur.git
synced 2026-03-08 08:59:34 +01:00
Add nvidia-340xx-dmks 340.76 package
This commit is contained in:
commit
9c4d07d46b
3 changed files with 91 additions and 0 deletions
24
.SRCINFO
Normal file
24
.SRCINFO
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
pkgbase = nvidia-340xx-dkms
|
||||
pkgdesc = NVIDIA kernel module sources (DKMS)
|
||||
pkgver = 340.76
|
||||
pkgrel = 1
|
||||
url = http://www.nvidia.com/
|
||||
install = nvidia-340xx-dkms.install
|
||||
arch = i686
|
||||
arch = x86_64
|
||||
license = custom
|
||||
depends = dkms
|
||||
depends = nvidia-340xx-utils>=340.76
|
||||
optdepends = linux-headers: Build the module against Arch kernel
|
||||
optdepends = linux-lts-headers: Build the module against LTS Arch kernel
|
||||
provides = nvidia=340.76
|
||||
provides = nvidia-dkms
|
||||
conflicts = nvidia-340xx
|
||||
conflicts = nvidia-dkms
|
||||
source = http://us.download.nvidia.com/XFree86/Linux-x86/340.76/NVIDIA-Linux-x86-340.76.run
|
||||
source = http://us.download.nvidia.com/XFree86/Linux-x86_64/340.76/NVIDIA-Linux-x86_64-340.76-no-compat32.run
|
||||
sha1sums = 1335af174324f5c752388110e65c3c51beea729b
|
||||
sha1sums = 2df59750d9fdeed613e84379108fb2bec67afd14
|
||||
|
||||
pkgname = nvidia-340xx-dkms
|
||||
|
||||
52
PKGBUILD
Executable file
52
PKGBUILD
Executable file
|
|
@ -0,0 +1,52 @@
|
|||
# Maintainer: Anish Bhatt anish [at] gatech [dot] edu
|
||||
# Contributor: JuanLu Guti <jlu85@ono.com>
|
||||
# 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>
|
||||
|
||||
pkgname=nvidia-340xx-dkms
|
||||
pkgver=340.76
|
||||
pkgrel=1
|
||||
pkgdesc='NVIDIA kernel module sources (DKMS)'
|
||||
arch=('i686' 'x86_64')
|
||||
url='http://www.nvidia.com/'
|
||||
license=('custom')
|
||||
depends=('dkms' "nvidia-340xx-utils>=${pkgver}")
|
||||
optdepends=('linux-headers: Build the module against Arch kernel'
|
||||
'linux-lts-headers: Build the module against LTS Arch kernel')
|
||||
provides=("nvidia=${pkgver}" "nvidia-dkms")
|
||||
conflicts=('nvidia-340xx' 'nvidia-dkms')
|
||||
install="${pkgname}.install"
|
||||
source=("http://us.download.nvidia.com/XFree86/Linux-x86/${pkgver}/NVIDIA-Linux-x86-${pkgver}.run"
|
||||
"http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run")
|
||||
sha1sums=('1335af174324f5c752388110e65c3c51beea729b'
|
||||
'2df59750d9fdeed613e84379108fb2bec67afd14')
|
||||
[[ $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
|
||||
}
|
||||
|
||||
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}
|
||||
|
||||
# Blacklist nouveau
|
||||
echo "blacklist nouveau" > "${pkgdir}"/usr/lib/modprobe.d/nvidia.conf
|
||||
|
||||
# UVM module
|
||||
cat "${pkgdir}"/usr/src/nvidia-${pkgver}/uvm/dkms.conf.fragment >> "${pkgdir}"/usr/src/nvidia-${pkgver}/dkms.conf
|
||||
|
||||
# License
|
||||
ln -s nvidia "${pkgdir}"/usr/share/licenses/${pkgname}
|
||||
}
|
||||
|
||||
# vim: ts=2 sw=2 et:
|
||||
15
nvidia-340xx-dkms.install
Executable file
15
nvidia-340xx-dkms.install
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
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
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue