summaryrefslogtreecommitdiff
path: root/community/bbswitch/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/bbswitch/PKGBUILD')
-rw-r--r--community/bbswitch/PKGBUILD15
1 files changed, 9 insertions, 6 deletions
diff --git a/community/bbswitch/PKGBUILD b/community/bbswitch/PKGBUILD
index 4f9eba675..3dbf06f98 100644
--- a/community/bbswitch/PKGBUILD
+++ b/community/bbswitch/PKGBUILD
@@ -4,23 +4,26 @@
pkgname=bbswitch
pkgver=0.5
-_extramodules=extramodules-3.7-ARCH # Don't forget to update bbswitch.install
-pkgrel=2
+_extramodules=extramodules-3.8-ARCH # Don't forget to update bbswitch.install
+pkgrel=3
pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus laptops"
arch=('i686' 'x86_64')
url=("http://github.com/Bumblebee-Project/bbswitch")
license=('GPL')
-depends=('linux>=3.7' 'linux<3.8')
-makedepends=('linux-headers>=3.7' 'linux-headers<3.8')
+depends=('linux>=3.8' 'linux<3.9')
+makedepends=('linux-headers>=3.8' 'linux-headers<3.9')
install=bbswitch.install
-source=("https://github.com/downloads/Bumblebee-Project/bbswitch/${pkgname}-${pkgver}.tar.gz")
-md5sums=('5e0e6eb9c5e8c10db56e5b349b43bba7')
+source=("https://github.com/downloads/Bumblebee-Project/bbswitch/${pkgname}-${pkgver}.tar.gz"
+ "https://github.com/Bumblebee-Project/bbswitch/commit/5593d9519364dc7f6f28c3dd8358afb907f39c0f.patch")
+md5sums=('5e0e6eb9c5e8c10db56e5b349b43bba7'
+ 'd76180b8f6fd092038d5ae7c71a9caa8')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
_kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+ patch -Np1 < ${srcdir}/5593d9519364dc7f6f28c3dd8358afb907f39c0f.patch
make KDIR=/usr/src/linux-${_kernver}
}