-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
211753d
commit 52913af
Showing
3 changed files
with
71 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}/" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |