Skip to content

Commit

Permalink
new version
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 26, 2023
1 parent 8a99393 commit 6c81361
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
# Contributor: Ike Devolder <ike.devolder+gmail+com>

_linuxprefix=linux-xanmod
_extramodules=$(find /usr/lib/modules -type d -iname 6.1.8*xanmod* | rev | cut -d "/" -f1 | rev)
_extramodules=$(find /usr/lib/modules -type d -iname 23.01.03*xanmod* | rev | cut -d "/" -f1 | rev)

pkgname=$_linuxprefix-nvidia-390xx
pkgdesc="NVIDIA drivers for linux"
pkgver=390.157
pkgrel=6181
pkgrel=2301030216
arch=('x86_64')
url="http://www.nvidia.com/"
license=('custom')
Expand All @@ -29,7 +29,7 @@ options=(!strip)
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=('SKIP')
sha256sums=('162317a49aa5a521eb888ec12119bfe5a45cec4e8653efc575a2d04fb05bf581')

_pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"

Expand All @@ -41,7 +41,7 @@ prepare() {
}

build() {
_kernver=$(find /usr/lib/modules -type d -iname 6.1.8*xanmod* | rev | cut -d "/" -f1 | rev)
_kernver="$(cat /usr/lib/modules/${_extramodules}/version)"

cd "${_pkg}"
make -C kernel SYSSRC=/usr/lib/modules/"${_kernver}/build" module
Expand Down
4 changes: 2 additions & 2 deletions nvidia.install
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
EXTRAMODULES=$(find /usr/lib/modules -type d -iname 6.1.8*xanmod* | rev | cut -d "/" -f1 | rev)
EXTRAMODULES=$(find /usr/lib/modules -type d -iname 23.01.03*xanmod* | rev | cut -d "/" -f1 | rev)

post_install() {
depmod $(find /usr/lib/modules -type d -iname 6.1.8*xanmod* | rev | cut -d "/" -f1 | rev)
depmod $(find /usr/lib/modules -type d -iname 23.01.03*xanmod* | rev | cut -d "/" -f1 | rev)
}

post_upgrade() {
Expand Down

0 comments on commit 6c81361

Please sign in to comment.