mirror of
https://github.com/archlinux-jerry/nvidia-340xx
synced 2024-11-24 00:20:40 +08:00
Update to 340.107-92
This commit is contained in:
parent
18f8cfefa5
commit
b983c4e2d6
2 changed files with 55 additions and 51 deletions
23
.SRCINFO
23
.SRCINFO
|
@ -1,29 +1,29 @@
|
||||||
pkgbase = nvidia-340xx
|
pkgbase = nvidia-340xx
|
||||||
pkgdesc = NVIDIA drivers for linux, 340xx legacy branch
|
pkgdesc = NVIDIA drivers for linux, 340xx legacy branch
|
||||||
pkgver = 340.107
|
pkgver = 340.107
|
||||||
pkgrel = 91
|
pkgrel = 92
|
||||||
url = http://www.nvidia.com/
|
url = https://www.nvidia.com/
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
license = custom
|
license = custom
|
||||||
makedepends = nvidia-340xx-utils=340.107
|
makedepends = nvidia-340xx-utils=340.107
|
||||||
makedepends = linux
|
makedepends = linux>=5.3.6
|
||||||
makedepends = linux-headers
|
makedepends = linux-headers>=5.3.6
|
||||||
conflicts = nvidia
|
conflicts = nvidia
|
||||||
options = !strip
|
options = !strip
|
||||||
source = http://us.download.nvidia.com/XFree86/Linux-x86_64/340.107/NVIDIA-Linux-x86_64-340.107-no-compat32.run
|
source = https://us.download.nvidia.com/XFree86/Linux-x86_64/340.107/NVIDIA-Linux-x86_64-340.107-no-compat32.run
|
||||||
source = kernel-4.11.patch
|
source = kernel-4.11.patch
|
||||||
source = kernel-5.0.patch
|
source = kernel-5.0.patch
|
||||||
source = kernel-5.1.patch
|
source = kernel-5.1.patch
|
||||||
source = kernel-5.3.patch
|
source = kernel-5.3.patch
|
||||||
sha512sums = 0de6f182d67bd322df7ae04e74c0cde6973c55bfea47a8f2503a29f8a899cd1b801ae4b52d066628df4a4f9c84e5e7547465bdc37d1b87df47af43fdab23466f
|
sha256sums = 6dc6f183c69c414670d8adef0286a2362eedd6e16ec6dfae811e48ea4a4505dc
|
||||||
sha512sums = c25d90499e1deb26129a67dd7e953be8c1e31c5770e2b8b64d03af54cf1afec1a52636e74900f8ac468692207ab8a3765a12edd581142c4d2cfd2d6e66ac7ac2
|
sha256sums = 5ba7e6d5e502882c3534d1d8578f7fd29fdf3d2aeb49206efa7b3514a7e3e821
|
||||||
sha512sums = ad60f9d09b6e8d5038375f9ddaab93341958f9400f40f5175857e44c7f7002d481121dc5d677703551c3cdf24069939ac6a1861920a455acf40e637f24234a56
|
sha256sums = 236a1d1dc9adc1cafec828f0650d5a15f1f6d0fa27905dab58ca072a46f159fa
|
||||||
sha512sums = 4bde7d15d68d21a8254e82cb41b07e55b3fd04054251919159dc440bf3253de76d7066e69b21c33d00d5ba61f88589b5444c2b5765c54cd1c0bcd7300971d499
|
sha256sums = 2b0e69814bfaee6b227bbf15d89d056ab27d84bd325248614e27cb5fa33a63a1
|
||||||
sha512sums = 6a25ea6845c4e5732abcfa6b29fbb13248f15b86c5350b0072e61a64064d506d0f605a26f01adec3f98196e88e819711719c52e71f13fafc6d56ec237bf82d96
|
sha256sums = 4b1146a46b21c67cc70ade6aadd7292f1d1d838875e8be9f92dc656768db636c
|
||||||
|
|
||||||
pkgname = nvidia-340xx
|
pkgname = nvidia-340xx
|
||||||
pkgdesc = NVIDIA drivers for linux, 340xx legacy branch
|
pkgdesc = NVIDIA drivers for linux, 340xx legacy branch
|
||||||
depends = linux
|
depends = linux>=5.3.6
|
||||||
depends = nvidia-340xx-utils=340.107
|
depends = nvidia-340xx-utils=340.107
|
||||||
depends = libgl
|
depends = libgl
|
||||||
|
|
||||||
|
@ -33,7 +33,6 @@ pkgname = nvidia-340xx-dkms
|
||||||
depends = nvidia-340xx-utils=340.107
|
depends = nvidia-340xx-utils=340.107
|
||||||
depends = libgl
|
depends = libgl
|
||||||
optdepends = linux-headers: Build the module for Arch kernel
|
optdepends = linux-headers: Build the module for Arch kernel
|
||||||
optdepends = linux-lts-headers: Build the module for LTS Arch kernel
|
|
||||||
provides = nvidia-340xx=340.107
|
provides = nvidia-340xx=340.107
|
||||||
conflicts = nvidia
|
conflicts = nvidia
|
||||||
conflicts = nvidia-340xx
|
conflicts = nvidia-340xx
|
||||||
|
|
59
PKGBUILD
59
PKGBUILD
|
@ -1,34 +1,39 @@
|
||||||
# Maintainer: Giancarlo Razzolini <grazzolini@archlinux.org>
|
# Maintainer: Jerry Xiao <aur@mail.jerryxiao.cc>
|
||||||
# Contributor: Felix Yan <felixonmars@archlinux.org>
|
# Maintainer: graysky <graysky AT archlinux DOT us>
|
||||||
# Contributor: Thomas Baechler <thomas@archlinux.org>
|
# Contributor: Giancarlo Razzolini <grazzolini@archlinux.org>
|
||||||
|
# Contributor: Eric Bélanger <eric@archlinux.org>
|
||||||
|
|
||||||
pkgbase=nvidia-340xx
|
pkgbase=nvidia-340xx
|
||||||
pkgname=(nvidia-340xx nvidia-340xx-dkms)
|
pkgname=(nvidia-340xx nvidia-340xx-dkms)
|
||||||
pkgver=340.107
|
pkgver=340.107
|
||||||
_extramodules=extramodules-ARCH
|
pkgrel=92
|
||||||
pkgrel=91
|
|
||||||
pkgdesc="NVIDIA drivers for linux, 340xx legacy branch"
|
pkgdesc="NVIDIA drivers for linux, 340xx legacy branch"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="http://www.nvidia.com/"
|
url="https://www.nvidia.com/"
|
||||||
makedepends=("nvidia-340xx-utils=${pkgver}" 'linux' 'linux-headers')
|
makedepends=("nvidia-340xx-utils=${pkgver}" 'linux>=5.3.6' 'linux-headers>=5.3.6')
|
||||||
conflicts=('nvidia')
|
conflicts=('nvidia')
|
||||||
license=('custom')
|
license=('custom')
|
||||||
options=('!strip')
|
options=(!strip)
|
||||||
source=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run"
|
source=("https://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run"
|
||||||
'kernel-4.11.patch' 'kernel-5.0.patch' 'kernel-5.1.patch' 'kernel-5.3.patch')
|
'kernel-4.11.patch' 'kernel-5.0.patch' 'kernel-5.1.patch' 'kernel-5.3.patch'
|
||||||
sha512sums=('0de6f182d67bd322df7ae04e74c0cde6973c55bfea47a8f2503a29f8a899cd1b801ae4b52d066628df4a4f9c84e5e7547465bdc37d1b87df47af43fdab23466f'
|
)
|
||||||
'c25d90499e1deb26129a67dd7e953be8c1e31c5770e2b8b64d03af54cf1afec1a52636e74900f8ac468692207ab8a3765a12edd581142c4d2cfd2d6e66ac7ac2'
|
sha256sums=('6dc6f183c69c414670d8adef0286a2362eedd6e16ec6dfae811e48ea4a4505dc'
|
||||||
'ad60f9d09b6e8d5038375f9ddaab93341958f9400f40f5175857e44c7f7002d481121dc5d677703551c3cdf24069939ac6a1861920a455acf40e637f24234a56'
|
'5ba7e6d5e502882c3534d1d8578f7fd29fdf3d2aeb49206efa7b3514a7e3e821'
|
||||||
'4bde7d15d68d21a8254e82cb41b07e55b3fd04054251919159dc440bf3253de76d7066e69b21c33d00d5ba61f88589b5444c2b5765c54cd1c0bcd7300971d499'
|
'236a1d1dc9adc1cafec828f0650d5a15f1f6d0fa27905dab58ca072a46f159fa'
|
||||||
'6a25ea6845c4e5732abcfa6b29fbb13248f15b86c5350b0072e61a64064d506d0f605a26f01adec3f98196e88e819711719c52e71f13fafc6d56ec237bf82d96')
|
'2b0e69814bfaee6b227bbf15d89d056ab27d84bd325248614e27cb5fa33a63a1'
|
||||||
|
'4b1146a46b21c67cc70ade6aadd7292f1d1d838875e8be9f92dc656768db636c')
|
||||||
_pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
|
_pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
|
||||||
|
|
||||||
|
# default is 'linux' substitute custom name here
|
||||||
|
_kernelname=linux
|
||||||
|
_kernver="$(</usr/src/$_kernelname/version)"
|
||||||
|
_extradir="/usr/lib/modules/$_kernver/extramodules"
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
sh "${_pkg}.run" --extract-only
|
sh "${_pkg}.run" --extract-only
|
||||||
cd "${_pkg}"
|
cd "${_pkg}"
|
||||||
# patches here
|
|
||||||
|
|
||||||
|
# patches here
|
||||||
patch -Np0 < "${srcdir}/kernel-4.11.patch"
|
patch -Np0 < "${srcdir}/kernel-4.11.patch"
|
||||||
patch -Np0 < "${srcdir}/kernel-5.0.patch"
|
patch -Np0 < "${srcdir}/kernel-5.0.patch"
|
||||||
patch -Np0 < "${srcdir}/kernel-5.1.patch"
|
patch -Np0 < "${srcdir}/kernel-5.1.patch"
|
||||||
|
@ -38,36 +43,34 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
_kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
|
cd "${_pkg}/kernel"
|
||||||
cd "${_pkg}"/kernel
|
make SYSSRC="/usr/src/$_kernelname" module
|
||||||
make SYSSRC=/usr/lib/modules/"${_kernver}/build" module
|
|
||||||
|
|
||||||
cd uvm
|
cd uvm
|
||||||
make SYSSRC=/usr/lib/modules/"${_kernver}/build" module
|
make SYSSRC="/usr/src/$_kernelname" module
|
||||||
}
|
}
|
||||||
|
|
||||||
package_nvidia-340xx() {
|
package_nvidia-340xx() {
|
||||||
pkgdesc="NVIDIA drivers for linux, 340xx legacy branch"
|
pkgdesc="NVIDIA drivers for linux, 340xx legacy branch"
|
||||||
depends=('linux' "nvidia-340xx-utils=${pkgver}" 'libgl')
|
depends=('linux>=5.3.6' "nvidia-340xx-utils=${pkgver}" 'libgl')
|
||||||
|
|
||||||
install -Dt "${pkgdir}/usr/lib/modules/${_extramodules}" -m644 \
|
install -Dt "${pkgdir}${_extradir}" -m644 \
|
||||||
"${srcdir}/${_pkg}/kernel"/{nvidia,uvm/nvidia-uvm}.ko
|
"${srcdir}/${_pkg}/kernel"/{nvidia,uvm/nvidia-uvm}.ko
|
||||||
|
|
||||||
find "${pkgdir}" -name '*.ko' -exec gzip -n {} +
|
find "${pkgdir}" -name '*.ko' -exec gzip -n {} +
|
||||||
|
|
||||||
echo "blacklist nouveau" |
|
echo "blacklist nouveau" |
|
||||||
install -Dm644 /dev/stdin "${pkgdir}/usr/lib/modprobe.d/${pkgname}.conf"
|
install -Dm644 /dev/stdin "${pkgdir}/usr/lib/modprobe.d/nvidia-340xx-ck.conf"
|
||||||
}
|
}
|
||||||
|
|
||||||
package_nvidia-340xx-dkms() {
|
package_nvidia-340xx-dkms() {
|
||||||
pkgdesc="NVIDIA driver sources for linux, 340xx legacy branch"
|
pkgdesc="NVIDIA driver sources for linux, 340xx legacy branch"
|
||||||
depends=('dkms' "nvidia-340xx-utils=$pkgver" 'libgl')
|
depends=('dkms' "nvidia-340xx-utils=$pkgver" 'libgl')
|
||||||
optdepends=('linux-headers: Build the module for Arch kernel'
|
optdepends=('linux-headers: Build the module for Arch kernel')
|
||||||
'linux-lts-headers: Build the module for LTS Arch kernel')
|
|
||||||
provides=("nvidia-340xx=$pkgver")
|
provides=("nvidia-340xx=$pkgver")
|
||||||
conflicts+=('nvidia-340xx')
|
conflicts+=('nvidia-340xx')
|
||||||
|
|
||||||
cd ${_pkg}
|
cd "${_pkg}"
|
||||||
|
|
||||||
install -dm 755 "${pkgdir}"/usr/src
|
install -dm 755 "${pkgdir}"/usr/src
|
||||||
cp -dr --no-preserve='ownership' kernel-dkms "${pkgdir}/usr/src/nvidia-${pkgver}"
|
cp -dr --no-preserve='ownership' kernel-dkms "${pkgdir}/usr/src/nvidia-${pkgver}"
|
||||||
|
@ -76,3 +79,5 @@ package_nvidia-340xx-dkms() {
|
||||||
echo "blacklist nouveau" |
|
echo "blacklist nouveau" |
|
||||||
install -Dm644 /dev/stdin "${pkgdir}/usr/lib/modprobe.d/${pkgname}.conf"
|
install -Dm644 /dev/stdin "${pkgdir}/usr/lib/modprobe.d/${pkgname}.conf"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# vim:set ts=2 sw=2 et:
|
||||||
|
|
Loading…
Reference in a new issue