From 3f492b4201e37269ef85eece9baa34fb8513bdc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Davi=20da=20Silva=20B=C3=B6ger?= Date: Tue, 31 Jan 2017 15:59:15 -0200 Subject: [PATCH] Remove unnecessary install file (we have DKMS hooks now) --- .SRCINFO | 3 +-- PKGBUILD | 1 - bbswitch-dkms-git.install | 25 ------------------------- 3 files changed, 1 insertion(+), 28 deletions(-) delete mode 100644 bbswitch-dkms-git.install diff --git a/.SRCINFO b/.SRCINFO index 7b4ded6..31f6fa9 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,11 +1,10 @@ # Generated by mksrcinfo v8 -# Tue Jan 31 17:57:59 UTC 2017 +# Tue Jan 31 17:58:36 UTC 2017 pkgbase = bbswitch-dkms-git pkgdesc = kernel module allowing to switch dedicated graphics card on Optimus laptops, dkms version pkgver = v0.8.r0.g0c38f97 pkgrel = 1 url = http://github.com/Bumblebee-Project/bbswitch - install = bbswitch-dkms-git.install arch = i686 arch = x86_64 license = GPL diff --git a/PKGBUILD b/PKGBUILD index 3755a90..588a2f8 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -13,7 +13,6 @@ provides=('bbswitch') conflicts=('bbswitch-git' 'bbswitch' 'dkms-bbswitch') depends=('dkms' 'linux-headers') makedepends=('git') -install=bbswitch-dkms-git.install _gitroot='git://github.com/Bumblebee-Project/bbswitch.git' _gitname='bbswitch' _gitbranch='develop' diff --git a/bbswitch-dkms-git.install b/bbswitch-dkms-git.install deleted file mode 100644 index 2748873..0000000 --- a/bbswitch-dkms-git.install +++ /dev/null @@ -1,25 +0,0 @@ -PKGVER="$(ls /usr/src/ | grep bbswitch | sed 's/^.*-//')" -_dkms="/usr/bin/dkms" - - -post_install() { - ${_dkms} add -m "bbswitch/${PKGVER}" - ${_dkms} build -m "bbswitch/${PKGVER}" - ${_dkms} install -m "bbswitch/${PKGVER}" -} - -post_upgrade() { - post_install -} - -pre_remove() { - ${_dkms} remove -m "bbswitch/${PKGVER}" --all -} - -pre_upgrade() { - pre_remove -} - -post_remove() { - depmod -a -}