diff options
author | Britney Fransen <brfransen@gmail.com> | 2017-12-11 21:38:44 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2017-12-11 21:38:44 (GMT) |
commit | 840371690b62ee807ad63855af9a6ed66f0b38ba (patch) | |
tree | f5d1f7e20e8c8751b7a217f4c24c37788e602f87 /abs/core/nvidia-340xx | |
parent | f06d8e1bedfcf6d424a4736d43f366d95fb33690 (diff) | |
parent | bcfdb82efc43195d9fa214bf256d91573c65828e (diff) | |
download | linhes_pkgbuild-840371690b62ee807ad63855af9a6ed66f0b38ba.zip linhes_pkgbuild-840371690b62ee807ad63855af9a6ed66f0b38ba.tar.gz linhes_pkgbuild-840371690b62ee807ad63855af9a6ed66f0b38ba.tar.bz2 |
Merge branch 'testing'
Diffstat (limited to 'abs/core/nvidia-340xx')
-rw-r--r-- | abs/core/nvidia-340xx/PKGBUILD | 3 | ||||
-rw-r--r-- | abs/core/nvidia-340xx/__changelog | 1 | ||||
-rw-r--r-- | abs/core/nvidia-340xx/nvidia-340xx.install | 13 |
3 files changed, 16 insertions, 1 deletions
diff --git a/abs/core/nvidia-340xx/PKGBUILD b/abs/core/nvidia-340xx/PKGBUILD index bff3ae3..a639d7f 100644 --- a/abs/core/nvidia-340xx/PKGBUILD +++ b/abs/core/nvidia-340xx/PKGBUILD @@ -6,7 +6,7 @@ pkgbase=nvidia-340xx pkgname=(nvidia-340xx nvidia-340xx-dkms) pkgver=340.104 _extramodules=extramodules-4.9-ARCH -pkgrel=7 +pkgrel=8 pkgdesc="NVIDIA drivers for linux, 340xx legacy branch" arch=('x86_64') url="http://www.nvidia.com/" @@ -45,6 +45,7 @@ build() { package_nvidia-340xx() { pkgdesc="NVIDIA drivers for linux, 340xx legacy branch" depends=('linux>=4.9' 'linux<4.10' "nvidia-340xx-utils=${pkgver}" 'libgl') + install=nvidia-340xx.install install -Dt "${pkgdir}/usr/lib/modules/${_extramodules}" -m644 \ "${srcdir}/${_pkg}/kernel"/{nvidia,uvm/nvidia-uvm}.ko diff --git a/abs/core/nvidia-340xx/__changelog b/abs/core/nvidia-340xx/__changelog new file mode 100644 index 0000000..0cde00d --- /dev/null +++ b/abs/core/nvidia-340xx/__changelog @@ -0,0 +1 @@ +PKGBUILD: keep .install for depmod diff --git a/abs/core/nvidia-340xx/nvidia-340xx.install b/abs/core/nvidia-340xx/nvidia-340xx.install new file mode 100644 index 0000000..9858d46 --- /dev/null +++ b/abs/core/nvidia-340xx/nvidia-340xx.install @@ -0,0 +1,13 @@ +post_install() { + EXTRAMODULES='extramodules-4.9-ARCH' + depmod $(cat /usr/lib/modules/$EXTRAMODULES/version) + echo 'In order to use nvidia module, reboot the system.' +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} |