summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorgraysky2019-10-12 10:53:10 -0400
committergraysky2019-10-12 10:53:10 -0400
commit4dd2a21a2e6ba43ba41120017e7a492e5c9e51ca (patch)
tree631b9d7e619453c976cb572b0ae6c22f5fff9df1
parentf6cf053fcb1611ad88f8cfc1e15a8108c702b3e9 (diff)
downloadaur-4dd2a21a2e6ba43ba41120017e7a492e5c9e51ca.tar.gz
Update to 340.107-99
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD19
2 files changed, 14 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ba4a4e48d3a..137b2bcbf43 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,8 @@
pkgbase = nvidia-340xx-ck
pkgdesc = NVIDIA drivers for linux-ck, 340xx legacy branch.
pkgver = 340.107
- pkgrel = 98
- url = http://www.nvidia.com/
+ pkgrel = 99
+ url = https://www.nvidia.com/
arch = x86_64
license = custom
makedepends = linux-ck-headers
@@ -13,7 +13,7 @@ pkgbase = nvidia-340xx-ck
conflicts = nvidia-ck
conflicts = nvidia-390xx-ck
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-5.0.patch
source = kernel-5.1.patch
diff --git a/PKGBUILD b/PKGBUILD
index 8ef20b45f47..fff06e6b908 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,11 +5,10 @@
pkgname=nvidia-340xx-ck
pkgver=340.107
-_extramodules=extramodules-ck
-pkgrel=98
+pkgrel=99
pkgdesc="NVIDIA drivers for linux-ck, 340xx legacy branch."
arch=('x86_64')
-url="http://www.nvidia.com/"
+url="https://www.nvidia.com/"
depends=('linux-ck' 'libgl' "nvidia-340xx-utils=${pkgver}")
makedepends=('linux-ck-headers' 'nvidia-340xx-libgl')
conflicts=('nvidia-ck' 'nvidia-390xx-ck')
@@ -17,7 +16,7 @@ conflicts=('nvidia-ck' 'nvidia-390xx-ck')
#replaces=()
license=('custom')
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'
)
sha256sums=('6dc6f183c69c414670d8adef0286a2362eedd6e16ec6dfae811e48ea4a4505dc'
@@ -26,6 +25,10 @@ sha256sums=('6dc6f183c69c414670d8adef0286a2362eedd6e16ec6dfae811e48ea4a4505dc'
'2b0e69814bfaee6b227bbf15d89d056ab27d84bd325248614e27cb5fa33a63a1')
_pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
+# default is 'linux' substitute custom name here
+_kernelname=linux-ck
+_kernver="$(</usr/src/$_kernelname/version)"
+
prepare() {
sh "${_pkg}.run" --extract-only
cd "${_pkg}"
@@ -37,16 +40,16 @@ prepare() {
}
build() {
- _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
cd "${_pkg}/kernel"
- make SYSSRC=/usr/lib/modules/"${_kernver}/build" module
+ make SYSSRC="/usr/src/$_kernelname" module
cd uvm
- make SYSSRC=/usr/lib/modules/"${_kernver}/build" module
+ make SYSSRC="/usr/src/$_kernelname" module
}
package() {
- install -Dt "${pkgdir}/usr/lib/modules/${_extramodules}" -m644 \
+ _extradir="/usr/lib/modules/$_kernver/extramodules"
+ install -Dt "${pkgdir}${_extradir}" -m644 \
"${srcdir}/${_pkg}/kernel"/{nvidia,uvm/nvidia-uvm}.ko
find "${pkgdir}" -name '*.ko' -exec gzip -n {} +