[arch-commits] Commit in bbswitch/repos/community-staging-x86_64 (4 files)

2020-05-10 Thread Jan Steffens via arch-commits
Date: Sunday, May 10, 2020 @ 11:33:01
  Author: heftig
Revision: 626161

archrelease: copy trunk to community-staging-x86_64

Added:
  bbswitch/repos/community-staging-x86_64/0001-proc_ops-struct.patch
(from rev 626155, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-staging-x86_64/PKGBUILD
(from rev 626156, bbswitch/trunk/PKGBUILD)
Deleted:
  bbswitch/repos/community-staging-x86_64/0001-proc_ops-struct.patch
  bbswitch/repos/community-staging-x86_64/PKGBUILD

+
 0001-proc_ops-struct.patch |   72 +-
 PKGBUILD   |   90 +--
 2 files changed, 81 insertions(+), 81 deletions(-)

Deleted: 0001-proc_ops-struct.patch
===
--- 0001-proc_ops-struct.patch  2020-05-10 11:33:00 UTC (rev 626160)
+++ 0001-proc_ops-struct.patch  2020-05-10 11:33:01 UTC (rev 626161)
@@ -1,36 +0,0 @@
-diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
 bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
-+++ bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
-@@ -35,6 +35,7 @@
- #include 
- #include 
- #include 
-+#include 
- 
- #define BBSWITCH_VERSION "0.8"
- 
-@@ -375,13 +376,23 @@
- return 0;
- }
- 
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
-+static struct proc_ops bbswitch_fops = {
-+.proc_open   = bbswitch_proc_open,
-+.proc_read   = seq_read,
-+.proc_write  = bbswitch_proc_write,
-+.proc_lseek = seq_lseek,
-+.proc_release= single_release
-+};
-+#else
- static struct file_operations bbswitch_fops = {
- .open   = bbswitch_proc_open,
- .read   = seq_read,
- .write  = bbswitch_proc_write,
- .llseek = seq_lseek,
- .release= single_release
--};
-+ };
-+#endif
- 
- static struct notifier_block nb = {
- .notifier_call = &bbswitch_pm_handler

Copied: bbswitch/repos/community-staging-x86_64/0001-proc_ops-struct.patch 
(from rev 626155, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- 0001-proc_ops-struct.patch  (rev 0)
+++ 0001-proc_ops-struct.patch  2020-05-10 11:33:01 UTC (rev 626161)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = &bbswitch_pm_handler

Deleted: PKGBUILD
===
--- PKGBUILD2020-05-10 11:33:00 UTC (rev 626160)
+++ PKGBUILD2020-05-10 11:33:01 UTC (rev 626161)
@@ -1,45 +0,0 @@
-# Maintainer: Sven-Hendrik Haase 
-# Contributor: M0Rf30
-# Contributor: Samsagax 
-
-pkgbase=bbswitch
-pkgname=(bbswitch bbswitch-dkms)
-pkgver=0.8
-pkgrel=319
-pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
-arch=('x86_64')
-url="http://github.com/Bumblebee-Project/bbswitch";
-license=('GPL')
-makedepends=('linux-headers')
-source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz";
-"0001-proc_ops-struct.patch")
-sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
-
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1')
-
-prepare() {
-cd ${pkgbase}-${pkgver}
-patch -Np1 < $srcdir/0001-proc_ops-struct.patch
-}
-
-build() {
-  cd ${pkgbase}-${pkgver}
-  make KDIR=/usr/src/linux
-}
-
-package_bbswitch() {
-  depends=('linux')
-
-  cd ${pkgbase}-${pkgver}
-  _extradir="/usr/lib/modules/$(
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=320
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch";
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pk

[arch-commits] Commit in bbswitch/repos/community-staging-x86_64 (4 files)

2020-05-09 Thread Jan Steffens via arch-commits
Date: Saturday, May 9, 2020 @ 20:01:15
  Author: heftig
Revision: 626078

archrelease: copy trunk to community-staging-x86_64

Added:
  bbswitch/repos/community-staging-x86_64/0001-proc_ops-struct.patch
(from rev 626075, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-staging-x86_64/PKGBUILD
(from rev 626075, bbswitch/trunk/PKGBUILD)
Deleted:
  bbswitch/repos/community-staging-x86_64/0001-proc_ops-struct.patch
  bbswitch/repos/community-staging-x86_64/PKGBUILD

+
 0001-proc_ops-struct.patch |   72 +-
 PKGBUILD   |   90 +--
 2 files changed, 81 insertions(+), 81 deletions(-)

Deleted: 0001-proc_ops-struct.patch
===
--- 0001-proc_ops-struct.patch  2020-05-09 20:01:13 UTC (rev 626077)
+++ 0001-proc_ops-struct.patch  2020-05-09 20:01:15 UTC (rev 626078)
@@ -1,36 +0,0 @@
-diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
 bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
-+++ bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
-@@ -35,6 +35,7 @@
- #include 
- #include 
- #include 
-+#include 
- 
- #define BBSWITCH_VERSION "0.8"
- 
-@@ -375,13 +376,23 @@
- return 0;
- }
- 
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
-+static struct proc_ops bbswitch_fops = {
-+.proc_open   = bbswitch_proc_open,
-+.proc_read   = seq_read,
-+.proc_write  = bbswitch_proc_write,
-+.proc_lseek = seq_lseek,
-+.proc_release= single_release
-+};
-+#else
- static struct file_operations bbswitch_fops = {
- .open   = bbswitch_proc_open,
- .read   = seq_read,
- .write  = bbswitch_proc_write,
- .llseek = seq_lseek,
- .release= single_release
--};
-+ };
-+#endif
- 
- static struct notifier_block nb = {
- .notifier_call = &bbswitch_pm_handler

Copied: bbswitch/repos/community-staging-x86_64/0001-proc_ops-struct.patch 
(from rev 626075, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- 0001-proc_ops-struct.patch  (rev 0)
+++ 0001-proc_ops-struct.patch  2020-05-09 20:01:15 UTC (rev 626078)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = &bbswitch_pm_handler

Deleted: PKGBUILD
===
--- PKGBUILD2020-05-09 20:01:13 UTC (rev 626077)
+++ PKGBUILD2020-05-09 20:01:15 UTC (rev 626078)
@@ -1,45 +0,0 @@
-# Maintainer: Sven-Hendrik Haase 
-# Contributor: M0Rf30
-# Contributor: Samsagax 
-
-pkgbase=bbswitch
-pkgname=(bbswitch bbswitch-dkms)
-pkgver=0.8
-pkgrel=318
-pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
-arch=('x86_64')
-url="http://github.com/Bumblebee-Project/bbswitch";
-license=('GPL')
-makedepends=('linux-headers')
-source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz";
-"0001-proc_ops-struct.patch")
-sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
-
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1')
-
-prepare() {
-cd ${pkgbase}-${pkgver}
-patch -Np1 < $srcdir/0001-proc_ops-struct.patch
-}
-
-build() {
-  cd ${pkgbase}-${pkgver}
-  make KDIR=/usr/src/linux
-}
-
-package_bbswitch() {
-  depends=('linux')
-
-  cd ${pkgbase}-${pkgver}
-  _extradir="/usr/lib/modules/$(
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=319
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch";
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${p

[arch-commits] Commit in bbswitch/repos/community-staging-x86_64 (4 files)

2020-04-04 Thread Jan Steffens via arch-commits
Date: Sunday, April 5, 2020 @ 03:17:23
  Author: heftig
Revision: 611791

archrelease: copy trunk to community-staging-x86_64

Added:
  bbswitch/repos/community-staging-x86_64/0001-proc_ops-struct.patch
(from rev 611785, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-staging-x86_64/PKGBUILD
(from rev 611786, bbswitch/trunk/PKGBUILD)
Deleted:
  bbswitch/repos/community-staging-x86_64/0001-proc_ops-struct.patch
  bbswitch/repos/community-staging-x86_64/PKGBUILD

+
 0001-proc_ops-struct.patch |   72 +-
 PKGBUILD   |   90 +--
 2 files changed, 81 insertions(+), 81 deletions(-)

Deleted: 0001-proc_ops-struct.patch
===
--- 0001-proc_ops-struct.patch  2020-04-05 03:17:22 UTC (rev 611790)
+++ 0001-proc_ops-struct.patch  2020-04-05 03:17:23 UTC (rev 611791)
@@ -1,36 +0,0 @@
-diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
 bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
-+++ bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
-@@ -35,6 +35,7 @@
- #include 
- #include 
- #include 
-+#include 
- 
- #define BBSWITCH_VERSION "0.8"
- 
-@@ -375,13 +376,23 @@
- return 0;
- }
- 
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
-+static struct proc_ops bbswitch_fops = {
-+.proc_open   = bbswitch_proc_open,
-+.proc_read   = seq_read,
-+.proc_write  = bbswitch_proc_write,
-+.proc_lseek = seq_lseek,
-+.proc_release= single_release
-+};
-+#else
- static struct file_operations bbswitch_fops = {
- .open   = bbswitch_proc_open,
- .read   = seq_read,
- .write  = bbswitch_proc_write,
- .llseek = seq_lseek,
- .release= single_release
--};
-+ };
-+#endif
- 
- static struct notifier_block nb = {
- .notifier_call = &bbswitch_pm_handler

Copied: bbswitch/repos/community-staging-x86_64/0001-proc_ops-struct.patch 
(from rev 611785, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- 0001-proc_ops-struct.patch  (rev 0)
+++ 0001-proc_ops-struct.patch  2020-04-05 03:17:23 UTC (rev 611791)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = &bbswitch_pm_handler

Deleted: PKGBUILD
===
--- PKGBUILD2020-04-05 03:17:22 UTC (rev 611790)
+++ PKGBUILD2020-04-05 03:17:23 UTC (rev 611791)
@@ -1,45 +0,0 @@
-# Maintainer: Sven-Hendrik Haase 
-# Contributor: M0Rf30
-# Contributor: Samsagax 
-
-pkgbase=bbswitch
-pkgname=(bbswitch bbswitch-dkms)
-pkgver=0.8
-pkgrel=304
-pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
-arch=('x86_64')
-url="http://github.com/Bumblebee-Project/bbswitch";
-license=('GPL')
-makedepends=('linux-headers')
-source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz";
-"0001-proc_ops-struct.patch")
-sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
-
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1')
-
-prepare() {
-cd ${pkgbase}-${pkgver}
-patch -Np1 < $srcdir/0001-proc_ops-struct.patch
-}
-
-build() {
-  cd ${pkgbase}-${pkgver}
-  make KDIR=/usr/src/linux
-}
-
-package_bbswitch() {
-  depends=('linux')
-
-  cd ${pkgbase}-${pkgver}
-  _extradir="/usr/lib/modules/$(
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=305
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch";
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${p

[arch-commits] Commit in bbswitch/repos/community-staging-x86_64 (4 files)

2020-04-01 Thread Giancarlo Razzolini via arch-commits
Date: Wednesday, April 1, 2020 @ 15:08:36
  Author: grazzolini
Revision: 608920

archrelease: copy trunk to community-staging-x86_64

Added:
  bbswitch/repos/community-staging-x86_64/0001-proc_ops-struct.patch
(from rev 608919, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-staging-x86_64/PKGBUILD
(from rev 608919, bbswitch/trunk/PKGBUILD)
Deleted:
  bbswitch/repos/community-staging-x86_64/0001-proc_ops-struct.patch
  bbswitch/repos/community-staging-x86_64/PKGBUILD

+
 0001-proc_ops-struct.patch |   58 +--
 PKGBUILD   |   90 +--
 2 files changed, 81 insertions(+), 67 deletions(-)

Deleted: 0001-proc_ops-struct.patch
===
--- 0001-proc_ops-struct.patch  2020-04-01 15:07:48 UTC (rev 608919)
+++ 0001-proc_ops-struct.patch  2020-04-01 15:08:36 UTC (rev 608920)
@@ -1,22 +0,0 @@
-diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
 bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
-+++ bbswitch-0.8.new/bbswitch.c2020-04-01 11:28:02.910890888 -0300
-@@ -375,12 +375,12 @@
- return 0;
- }
- 
--static struct file_operations bbswitch_fops = {
--.open   = bbswitch_proc_open,
--.read   = seq_read,
--.write  = bbswitch_proc_write,
--.llseek = seq_lseek,
--.release= single_release
-+static struct proc_ops bbswitch_fops = {
-+.proc_open   = bbswitch_proc_open,
-+.proc_read   = seq_read,
-+.proc_write  = bbswitch_proc_write,
-+.proc_lseek = seq_lseek,
-+.proc_release= single_release
- };
- 
- static struct notifier_block nb = {

Copied: bbswitch/repos/community-staging-x86_64/0001-proc_ops-struct.patch 
(from rev 608919, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- 0001-proc_ops-struct.patch  (rev 0)
+++ 0001-proc_ops-struct.patch  2020-04-01 15:08:36 UTC (rev 608920)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = &bbswitch_pm_handler

Deleted: PKGBUILD
===
--- PKGBUILD2020-04-01 15:07:48 UTC (rev 608919)
+++ PKGBUILD2020-04-01 15:08:36 UTC (rev 608920)
@@ -1,45 +0,0 @@
-# Maintainer: Sven-Hendrik Haase 
-# Contributor: M0Rf30
-# Contributor: Samsagax 
-
-pkgbase=bbswitch
-pkgname=(bbswitch bbswitch-dkms)
-pkgver=0.8
-pkgrel=303
-pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
-arch=('x86_64')
-url="http://github.com/Bumblebee-Project/bbswitch";
-license=('GPL')
-makedepends=('linux-headers')
-source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz";
-"0001-proc_ops-struct.patch")
-sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
-
'b4b7e5e2e0b531f30b10c3e92d8d1e7189a13d1fdea55dc9659553f9df54c305addce53c78ecc0dac2e68e002b7f655161b57698bdeaa87e1987c7f7ad6cb629')
-
-prepare() {
-cd ${pkgbase}-${pkgver}
-patch -Np1 < $srcdir/0001-proc_ops-struct.patch
-}
-
-build() {
-  cd ${pkgbase}-${pkgver}
-  make KDIR=/usr/src/linux
-}
-
-package_bbswitch() {
-  depends=('linux')
-
-  cd ${pkgbase}-${pkgver}
-  _extradir="/usr/lib/modules/$(
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=304
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch";
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz";
+"0001-proc_ops-struct.patch")
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0