From f11c21626adb7f82a8d5e90469420cfc9f00d3de Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Mon, 11 Dec 2017 21:25:20 +0000 Subject: nvidia-340xx & nvidia-304xx: rebuild add back .install --- abs/core/nvidia-304xx/PKGBUILD | 3 ++- abs/core/nvidia-304xx/__changelog | 1 + abs/core/nvidia-304xx/nvidia-304xx.install | 13 +++++++++++++ abs/core/nvidia-340xx/PKGBUILD | 3 ++- abs/core/nvidia-340xx/__changelog | 1 + abs/core/nvidia-340xx/nvidia-340xx.install | 13 +++++++++++++ 6 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 abs/core/nvidia-304xx/__changelog create mode 100644 abs/core/nvidia-304xx/nvidia-304xx.install create mode 100644 abs/core/nvidia-340xx/__changelog create mode 100644 abs/core/nvidia-340xx/nvidia-340xx.install diff --git a/abs/core/nvidia-304xx/PKGBUILD b/abs/core/nvidia-304xx/PKGBUILD index cb0b9e9..c370fa8 100644 --- a/abs/core/nvidia-304xx/PKGBUILD +++ b/abs/core/nvidia-304xx/PKGBUILD @@ -6,7 +6,7 @@ pkgbase=nvidia-304xx pkgname=(nvidia-304xx nvidia-304xx-dkms) pkgver=304.137 _extramodules=extramodules-4.9-ARCH -pkgrel=8 +pkgrel=9 pkgdesc="NVIDIA drivers for linux, 304xx legacy branch" arch=('x86_64') url="http://www.nvidia.com/" @@ -44,6 +44,7 @@ build() { package_nvidia-304xx() { pkgdesc="NVIDIA drivers for linux, 304xx legacy branch" depends=('linux>=4.9' 'linux<4.10' "nvidia-304xx-utils=${pkgver}" 'libgl') + install=nvidia-304xx.install install -Dt "${pkgdir}/usr/lib/modules/${_extramodules}" -m644 \ "${srcdir}/${_pkg}/kernel"/nvidia.ko diff --git a/abs/core/nvidia-304xx/__changelog b/abs/core/nvidia-304xx/__changelog new file mode 100644 index 0000000..0cde00d --- /dev/null +++ b/abs/core/nvidia-304xx/__changelog @@ -0,0 +1 @@ +PKGBUILD: keep .install for depmod diff --git a/abs/core/nvidia-304xx/nvidia-304xx.install b/abs/core/nvidia-304xx/nvidia-304xx.install new file mode 100644 index 0000000..9858d46 --- /dev/null +++ b/abs/core/nvidia-304xx/nvidia-304xx.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 +} 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 +} -- cgit v0.12