Commit 6544d327 authored by Mark Wagie's avatar Mark Wagie
Browse files

[pkg-upd] 515.48.07-2

parent 440eb3a1
# Maintainer: Bernhard Landauer <bernhard@manjaro.org>
# Maintainer: Philip Müller <philm[at]manjaro[dot]org>
# Archlinux maintainer : Thomas Baechler <thomas@archlinux.org>
# Arch credits:
# Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Thomas Baechler <thomas@archlinux.org>
_linuxprefix=linux518
_extramodules=extramodules-5.18-MANJARO
# don't edit here
pkgver=510.73.05
_nver=510
# edit here for new version
_sver=73.05
# edit here for new build
pkgrel=0.1
pkgname=$_linuxprefix-nvidia
_pkgver="${_nver}.${_sver}"
pkgdesc="NVIDIA drivers for linux."
pkgdesc="NVIDIA drivers for linux"
pkgver=510.73.05
pkgrel=0.2
arch=('x86_64')
url="http://www.nvidia.com/"
depends=("$_linuxprefix" "nvidia-utils=${_pkgver}")
makedepends=("$_linuxprefix-headers")
license=('custom')
groups=("$_linuxprefix-extramodules")
depends=("$_linuxprefix" "nvidia-utils=$pkgver")
makedepends=("$_linuxprefix-headers")
provides=("nvidia=$pkgver" 'NVIDIA-MODULE')
license=('custom')
install=nvidia.install
options=(!strip)
durl="https://us.download.nvidia.com/XFree86/Linux-x86"
source=("${durl}_64/${_pkgver}/NVIDIA-Linux-x86_64-${_pkgver}-no-compat32.run")
install=nvidia.install
_durl="https://us.download.nvidia.com/XFree86/Linux-x86"
source=("${_durl}_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run")
sha256sums=('595465d138a63071170ea1de20ebe9bdef59c9a97d7c4325c0a04abb4bc15719')
_pkg="NVIDIA-Linux-x86_64-${_pkgver}-no-compat32"
pkgver() {
printf '%s' "${_pkgver}"
}
_pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
prepare() {
sh "${_pkg}.run" --extract-only
cd "${_pkg}"
# patches here
}
build() {
_kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
cd "${_pkg}"/kernel
make SYSSRC=/usr/lib/modules/"${_kernver}/build" module
cd "${_pkg}"
make -C kernel SYSSRC=/usr/lib/modules/"${_kernver}/build" module
}
package() {
install -D -m644 "${_pkg}/kernel/nvidia.ko" \
"${pkgdir}/usr/lib/modules/${_extramodules}/nvidia.ko"
install -D -m644 "${_pkg}/kernel/nvidia-modeset.ko" \
"${pkgdir}/usr/lib/modules/${_extramodules}/nvidia-modeset.ko"
install -D -m644 "${_pkg}/kernel/nvidia-drm.ko" \
"${pkgdir}/usr/lib/modules/${_extramodules}/nvidia-drm.ko"
install -D -m644 "${_pkg}/kernel/nvidia-uvm.ko" \
"${pkgdir}/usr/lib/modules/${_extramodules}/nvidia-uvm.ko"
cd "${_pkg}"
install -Dm644 kernel/*.ko -t "${pkgdir}/usr/lib/modules/${_extramodules}/"
# compress each module individually
find "${pkgdir}" -name '*.ko' -exec xz -T1 {} +
sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" "${startdir}/nvidia.install"
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
}
EXTRAMODULES='extramodules-5.18-MANJARO'
post_install() {
depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
echo 'In order to use nvidia module, reboot the system.'
depmod "$(cat /usr/lib/modules/${EXTRAMODULES}/version)"
}
post_upgrade() {
depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
post_install
}
post_remove() {
depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
post_install
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment