[arch-commits] Commit in nvidia-304xx/trunk (PKGBUILD nvidia-304xx-dkms.install)
Felix Yan
fyan at archlinux.org
Sat Mar 5 13:32:46 UTC 2016
Date: Saturday, March 5, 2016 @ 14:32:46
Author: fyan
Revision: 260950
remove dkms.install in favor of the dkms alpm hook
Modified:
nvidia-304xx/trunk/PKGBUILD
Deleted:
nvidia-304xx/trunk/nvidia-304xx-dkms.install
---------------------------+
PKGBUILD | 1 -
nvidia-304xx-dkms.install | 30 ------------------------------
2 files changed, 31 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-03-05 13:32:22 UTC (rev 260949)
+++ PKGBUILD 2016-03-05 13:32:46 UTC (rev 260950)
@@ -61,7 +61,6 @@
optdepends=('linux-headers: Build the module for Arch kernel'
'linux-lts-headers: Build the module for LTS Arch kernel')
conflicts+=('nvidia-304xx')
- install=nvidia-304xx-dkms.install
cd ${_pkg}
make -C kernel clean
Deleted: nvidia-304xx-dkms.install
===================================================================
--- nvidia-304xx-dkms.install 2016-03-05 13:32:22 UTC (rev 260949)
+++ nvidia-304xx-dkms.install 2016-03-05 13:32:46 UTC (rev 260950)
@@ -1,30 +0,0 @@
-#/bin/sh
-
-# arg 1: the new package version
-post_install() {
- dkms add nvidia/${1%-*}
- cat << EOF
-==> To build and install your modules run: dkms install nvidia/${1%-*}
-==> To do this automatically at startup run: systemctl enable dkms.service
-EOF
-}
-
-# arg 1: the new package version
-# arg 2: the old package version
-pre_upgrade() {
- pre_remove "$2"
-}
-
-# arg 1: the new package version
-# arg 2: the old package version
-post_upgrade() {
- post_install "$1"
-}
-
-# arg 1: the old package version
-pre_remove() {
- # Remove modules using dkms
- [ -n "${1%-*}" ] && dkms remove nvidia/${1%-*} --all &>/dev/null || true
-}
-
-# vim:set ts=2 sw=2 ft=sh et:
More information about the arch-commits
mailing list