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 23, 2023
1 parent 211753d commit 52913af
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 1 deletion.
58 changes: 58 additions & 0 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Maintainer: Bernhard Landauer <bernhard[at]manjaro[dot]org>
# Maintainer: Philip Müller <philm[at]manjaro[dot]org>
# Contributor: Gerd Röthig (DAC24)

# Archlinux credits:
# Maintainer : Thomas Baechler <[email protected]>
# Contributor: Alonso Rodriguez <alonsorodi20 (at) gmail (dot) com>
# Contributor: Sven-Hendrik Haase <[email protected]>
# Contributor: Felix Yan <[email protected]>
# Contributor: loqs
# Contributor: Dede Dindin Qudsy <xtrymind+gmail+com>
# Contributor: Ike Devolder <ike.devolder+gmail+com>

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

pkgname=$_linuxprefix-nvidia-390xx
pkgdesc="NVIDIA drivers for linux"
pkgver=390.157
pkgrel=6171
arch=('x86_64')
url="http://www.nvidia.com/"
license=('custom')
groups=("$_linuxprefix-extramodules")
depends=("$_linuxprefix" "nvidia-utils=$pkgver")
makedepends=("$_linuxprefix-headers")
provides=("nvidia=$pkgver" 'NVIDIA-MODULE')
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)

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

prepare() {
sh "${_pkg}.run" --extract-only

cd "${_pkg}"
# patches here
}

build() {
_kernver=$(find /usr/lib/modules -type d -iname 6.1.7*xanmod* | rev | cut -d "/" -f1 | rev)

cd "${_pkg}"
make -C kernel SYSSRC=/usr/lib/modules/"${_kernver}/build" module
}

package() {
cd "${_pkg}"
install -Dm644 kernel/*.ko -t "${pkgdir}/usr/lib/modules/${_extramodules}/"

# compress each module individually
find "${pkgdir}" -name '*.ko' -exec xz -T1 {} +

install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
}
13 changes: 13 additions & 0 deletions nvidia.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
EXTRAMODULES=$(find /usr/lib/modules -type d -iname 6.1.7*xanmod* | rev | cut -d "/" -f1 | rev)

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

post_upgrade() {
post_install
}

post_remove() {
post_install
}
1 change: 0 additions & 1 deletion xpto.txt

This file was deleted.

0 comments on commit 52913af

Please sign in to comment.