[arch-commits] Commit in nvidia/trunk (PKGBUILD nvidia-dkms.install)

Felix Yan fyan at archlinux.org
Sat Mar 5 13:30:10 UTC 2016


    Date: Saturday, March 5, 2016 @ 14:30:09
  Author: fyan
Revision: 260948

remove dkms.install in favor of the dkms alpm hook

Modified:
  nvidia/trunk/PKGBUILD
Deleted:
  nvidia/trunk/nvidia-dkms.install

---------------------+
 PKGBUILD            |    1 -
 nvidia-dkms.install |   30 ------------------------------
 2 files changed, 31 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-03-05 12:02:41 UTC (rev 260947)
+++ PKGBUILD	2016-03-05 13:30:09 UTC (rev 260948)
@@ -73,7 +73,6 @@
     optdepends=('linux-headers: Build the module for Arch kernel'
                 'linux-lts-headers: Build the module for LTS Arch kernel')
     conflicts+=('nvidia')
-    install=nvidia-dkms.install
 
     cd ${_pkg}
     install -dm 755 "${pkgdir}"/usr/{lib/modprobe.d,src}

Deleted: nvidia-dkms.install
===================================================================
--- nvidia-dkms.install	2016-03-05 12:02:41 UTC (rev 260947)
+++ nvidia-dkms.install	2016-03-05 13:30:09 UTC (rev 260948)
@@ -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:
\ No newline at end of file



More information about the arch-commits mailing list