[arch-commits] Commit in bbswitch/repos (3 files)

2015-10-24 Thread Tobias Powalowski
Date: Saturday, October 24, 2015 @ 12:00:54
  Author: tpowa
Revision: 144876

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 144875, bbswitch/trunk/PKGBUILD)
  bbswitch/repos/community-testing-x86_64/bbswitch.install
(from rev 144875, bbswitch/trunk/bbswitch.install)

--+
 PKGBUILD |   33 +
 bbswitch.install |   12 
 2 files changed, 45 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 144875, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2015-10-24 10:00:54 UTC (rev 144876)
@@ -0,0 +1,33 @@
+# $Id$
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgname=bbswitch
+pkgver=0.8
+_extramodules=extramodules-4.2-ARCH # Don't forget to update bbswitch.install
+pkgrel=38
+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>=4.2' 'linux<4.3')
+makedepends=('linux-headers>=4.2' 'linux-headers<4.3')
+install=bbswitch.install
+source=("$pkgname-$pkgver.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz";)
+md5sums=('5b116b31ace3604ddf9d1fc1f4bc5807')
+
+build() {
+  cd ${srcdir}/${pkgname}-${pkgver}
+
+  _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+
+  make KDIR=/lib/modules/${_kernver}/build
+}
+
+package() {
+  cd ${srcdir}/${pkgname}-${pkgver}
+   
+  install -Dm644 bbswitch.ko 
"${pkgdir}"/usr/lib/modules/${_extramodules}/bbswitch.ko
+  gzip "${pkgdir}/usr/lib/modules/${_extramodules}/bbswitch.ko"
  
+}

Copied: bbswitch/repos/community-testing-x86_64/bbswitch.install (from rev 
144875, bbswitch/trunk/bbswitch.install)
===
--- community-testing-x86_64/bbswitch.install   (rev 0)
+++ community-testing-x86_64/bbswitch.install   2015-10-24 10:00:54 UTC (rev 
144876)
@@ -0,0 +1,12 @@
+post_install() {
+EXTRAMODULES='extramodules-4.2-ARCH'
+depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_upgrade() {
+post_install
+}
+
+post_remove() {
+post_install
+}


[arch-commits] Commit in bbswitch/repos (3 files)

2020-04-01 Thread Giancarlo Razzolini via arch-commits
Date: Wednesday, April 1, 2020 @ 14:38:46
  Author: grazzolini
Revision: 608913

archrelease: copy trunk to staging-x86_64

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

+
 0001-proc_ops-struct.patch |   22 +
 PKGBUILD   |   45 +++
 2 files changed, 67 insertions(+)

Copied: bbswitch/repos/staging-x86_64/0001-proc_ops-struct.patch (from rev 
608912, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- staging-x86_64/0001-proc_ops-struct.patch   (rev 0)
+++ staging-x86_64/0001-proc_ops-struct.patch   2020-04-01 14:38:46 UTC (rev 
608913)
@@ -0,0 +1,22 @@
+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/staging-x86_64/PKGBUILD (from rev 608912, 
bbswitch/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2020-04-01 14:38:46 UTC (rev 608913)
@@ -0,0 +1,45 @@
+# 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/$(

[arch-commits] Commit in bbswitch/repos (3 files)

2020-04-01 Thread Giancarlo Razzolini via arch-commits
Date: Wednesday, April 1, 2020 @ 14:41:00
  Author: grazzolini
Revision: 608914

archrelease: copy trunk to community-staging-x86_64

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

+
 0001-proc_ops-struct.patch |   22 +
 PKGBUILD   |   45 +++
 2 files changed, 67 insertions(+)

Copied: bbswitch/repos/community-staging-x86_64/0001-proc_ops-struct.patch 
(from rev 608913, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-staging-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-staging-x86_64/0001-proc_ops-struct.patch 2020-04-01 14:41:00 UTC 
(rev 608914)
@@ -0,0 +1,22 @@
+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/PKGBUILD (from rev 608913, 
bbswitch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2020-04-01 14:41:00 UTC (rev 608914)
@@ -0,0 +1,45 @@
+# 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/$(

[arch-commits] Commit in bbswitch/repos (3 files)

2020-04-08 Thread Jan Steffens via arch-commits
Date: Wednesday, April 8, 2020 @ 08:54:52
  Author: heftig
Revision: 612573

archrelease: copy trunk to community-testing-x86_64

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

+
 0001-proc_ops-struct.patch |   36 ++
 PKGBUILD   |   45 +++
 2 files changed, 81 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 612572, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2020-04-08 08:54:52 UTC 
(rev 612573)
@@ -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

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 612572, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-04-08 08:54:52 UTC (rev 612573)
@@ -0,0 +1,45 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=307
+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/$(

[arch-commits] Commit in bbswitch/repos (3 files)

2020-05-14 Thread Jan Steffens via arch-commits
Date: Thursday, May 14, 2020 @ 07:45:09
  Author: heftig
Revision: 627880

archrelease: copy trunk to community-testing-x86_64

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

+
 0001-proc_ops-struct.patch |   36 ++
 PKGBUILD   |   45 +++
 2 files changed, 81 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 627875, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2020-05-14 07:45:09 UTC 
(rev 627880)
@@ -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

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 627875, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-05-14 07:45:09 UTC (rev 627880)
@@ -0,0 +1,45 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=321
+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/$(

[arch-commits] Commit in bbswitch/repos (3 files)

2020-04-13 Thread Jan Steffens via arch-commits
Date: Monday, April 13, 2020 @ 13:21:52
  Author: heftig
Revision: 613664

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 613661, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 613662, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 PKGBUILD   |   45 +++
 2 files changed, 81 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 613661, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2020-04-13 13:21:52 UTC 
(rev 613664)
@@ -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

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 613662, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-04-13 13:21:52 UTC (rev 613664)
@@ -0,0 +1,45 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=308
+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/$(

[arch-commits] Commit in bbswitch/repos (3 files)

2020-04-17 Thread Jan Steffens via arch-commits
Date: Friday, April 17, 2020 @ 21:48:35
  Author: heftig
Revision: 615997

archrelease: copy trunk to community-testing-x86_64

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

+
 0001-proc_ops-struct.patch |   36 ++
 PKGBUILD   |   45 +++
 2 files changed, 81 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 615995, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2020-04-17 21:48:35 UTC 
(rev 615997)
@@ -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

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 615995, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-04-17 21:48:35 UTC (rev 615997)
@@ -0,0 +1,45 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=309
+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/$(

[arch-commits] Commit in bbswitch/repos (3 files)

2020-04-21 Thread Jan Steffens via arch-commits
Date: Tuesday, April 21, 2020 @ 11:50:06
  Author: heftig
Revision: 617350

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 617345, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 617346, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 PKGBUILD   |   45 +++
 2 files changed, 81 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 617345, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2020-04-21 11:50:06 UTC 
(rev 617350)
@@ -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

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 617346, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-04-21 11:50:06 UTC (rev 617350)
@@ -0,0 +1,45 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=312
+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/$(

[arch-commits] Commit in bbswitch/repos (3 files)

2020-04-23 Thread Jan Steffens via arch-commits
Date: Thursday, April 23, 2020 @ 10:39:50
  Author: heftig
Revision: 617952

archrelease: copy trunk to community-testing-x86_64

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

+
 0001-proc_ops-struct.patch |   36 ++
 PKGBUILD   |   45 +++
 2 files changed, 81 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 617946, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2020-04-23 10:39:50 UTC 
(rev 617952)
@@ -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

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 617946, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-04-23 10:39:50 UTC (rev 617952)
@@ -0,0 +1,45 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=313
+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/$(

[arch-commits] Commit in bbswitch/repos (3 files)

2020-04-29 Thread Jan Steffens via arch-commits
Date: Wednesday, April 29, 2020 @ 17:51:57
  Author: heftig
Revision: 622296

archrelease: copy trunk to community-testing-x86_64

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

+
 0001-proc_ops-struct.patch |   36 ++
 PKGBUILD   |   45 +++
 2 files changed, 81 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 622292, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2020-04-29 17:51:57 UTC 
(rev 622296)
@@ -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

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 622292, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-04-29 17:51:57 UTC (rev 622296)
@@ -0,0 +1,45 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=314
+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/$(

[arch-commits] Commit in bbswitch/repos (3 files)

2020-05-02 Thread Jan Steffens via arch-commits
Date: Saturday, May 2, 2020 @ 13:14:01
  Author: heftig
Revision: 624377

archrelease: copy trunk to community-testing-x86_64

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

+
 0001-proc_ops-struct.patch |   36 ++
 PKGBUILD   |   45 +++
 2 files changed, 81 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 624371, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2020-05-02 13:14:01 UTC 
(rev 624377)
@@ -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

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 624371, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-05-02 13:14:01 UTC (rev 624377)
@@ -0,0 +1,45 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=315
+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/$(

[arch-commits] Commit in bbswitch/repos (3 files)

2020-05-06 Thread Jan Steffens via arch-commits
Date: Wednesday, May 6, 2020 @ 19:48:32
  Author: heftig
Revision: 625184

archrelease: copy trunk to community-testing-x86_64

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

+
 0001-proc_ops-struct.patch |   36 ++
 PKGBUILD   |   45 +++
 2 files changed, 81 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 625179, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2020-05-06 19:48:32 UTC 
(rev 625184)
@@ -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

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 625179, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-05-06 19:48:32 UTC (rev 625184)
@@ -0,0 +1,45 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=317
+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/$(

[arch-commits] Commit in bbswitch/repos (3 files)

2020-05-08 Thread Jan Steffens via arch-commits
Date: Friday, May 8, 2020 @ 21:40:22
  Author: heftig
Revision: 625801

archrelease: copy trunk to community-staging-x86_64

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

+
 0001-proc_ops-struct.patch |   36 ++
 PKGBUILD   |   45 +++
 2 files changed, 81 insertions(+)

Copied: bbswitch/repos/community-staging-x86_64/0001-proc_ops-struct.patch 
(from rev 625796, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-staging-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-staging-x86_64/0001-proc_ops-struct.patch 2020-05-08 21:40:22 UTC 
(rev 625801)
@@ -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

Copied: bbswitch/repos/community-staging-x86_64/PKGBUILD (from rev 625796, 
bbswitch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2020-05-08 21:40:22 UTC (rev 625801)
@@ -0,0 +1,45 @@
+# 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/$(

[arch-commits] Commit in bbswitch/repos (3 files)

2020-05-20 Thread Jan Steffens via arch-commits
Date: Wednesday, May 20, 2020 @ 23:01:20
  Author: heftig
Revision: 631031

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 631028, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 631029, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 PKGBUILD   |   45 +++
 2 files changed, 81 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 631028, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2020-05-20 23:01:20 UTC 
(rev 631031)
@@ -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

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 631029, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-05-20 23:01:20 UTC (rev 631031)
@@ -0,0 +1,45 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=322
+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/$(

[arch-commits] Commit in bbswitch/repos (3 files)

2020-05-27 Thread Jan Steffens via arch-commits
Date: Thursday, May 28, 2020 @ 00:31:24
  Author: heftig
Revision: 636122

archrelease: copy trunk to community-testing-x86_64

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

+
 0001-proc_ops-struct.patch |   36 ++
 PKGBUILD   |   45 +++
 2 files changed, 81 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 636118, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2020-05-28 00:31:24 UTC 
(rev 636122)
@@ -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

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 636118, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-05-28 00:31:24 UTC (rev 636122)
@@ -0,0 +1,45 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=323
+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/$(

[arch-commits] Commit in bbswitch/repos (3 files)

2017-11-08 Thread Tobias Powalowski
Date: Wednesday, November 8, 2017 @ 15:38:54
  Author: tpowa
Revision: 265737

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 265736, bbswitch/trunk/PKGBUILD)
  bbswitch/repos/community-testing-x86_64/bbswitch.install
(from rev 265736, bbswitch/trunk/bbswitch.install)

--+
 PKGBUILD |   47 +++
 bbswitch.install |   12 
 2 files changed, 59 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 265736, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2017-11-08 15:38:54 UTC (rev 265737)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+_extramodules=extramodules-4.13-ARCH # Don't forget to update bbswitch.install
+pkgrel=83
+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')
+makedepends=('linux-headers>=4.13' 'linux-headers<4.14' 'linux>=4.13' 
'linux<4.14')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz";)
+md5sums=('5b116b31ace3604ddf9d1fc1f4bc5807')
+
+build() {
+  cd ${srcdir}/${pkgbase}-${pkgver}
+
+  _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+
+  make KDIR=/lib/modules/${_kernver}/build
+}
+
+package_bbswitch() {
+  depends=('linux>=4.13' 'linux<4.14')
+  install=bbswitch.install
+
+  cd ${srcdir}/${pkgbase}-${pkgver}
+
+  install -Dm644 bbswitch.ko 
"${pkgdir}"/usr/lib/modules/${_extramodules}/bbswitch.ko
+  gzip "${pkgdir}/usr/lib/modules/${_extramodules}/bbswitch.ko"
+}
+
+package_bbswitch-dkms() {
+  depends=('dkms')
+  conflicts=('bbswitch')
+  provides=('bbswitch')
+
+  cd ${srcdir}/${pkgbase}-${pkgver}
+
+  install -dm755 "${pkgdir}/usr/src/${pkgbase}-${pkgver}/"
+
+  install -Dm644 Makefile bbswitch.c dkms/dkms.conf 
"${pkgdir}/usr/src/${pkgbase}-${pkgver}/"
+}

Copied: bbswitch/repos/community-testing-x86_64/bbswitch.install (from rev 
265736, bbswitch/trunk/bbswitch.install)
===
--- community-testing-x86_64/bbswitch.install   (rev 0)
+++ community-testing-x86_64/bbswitch.install   2017-11-08 15:38:54 UTC (rev 
265737)
@@ -0,0 +1,12 @@
+post_install() {
+EXTRAMODULES='extramodules-4.13-ARCH'
+depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_upgrade() {
+post_install
+}
+
+post_remove() {
+post_install
+}


[arch-commits] Commit in bbswitch/repos (3 files)

2018-10-26 Thread Jan Steffens via arch-commits
Date: Friday, October 26, 2018 @ 19:28:23
  Author: heftig
Revision: 399158

db-move: moved bbswitch from [community-staging] to [community-testing] (x86_64)

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 399157, bbswitch/repos/community-staging-x86_64/PKGBUILD)
Deleted:
  bbswitch/repos/community-staging-x86_64/

--+
 PKGBUILD |   38 ++
 1 file changed, 38 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 399157, 
bbswitch/repos/community-staging-x86_64/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2018-10-26 19:28:23 UTC (rev 399158)
@@ -0,0 +1,38 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=175
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch";
+license=('GPL')
+depends=('linux>=4.19' 'linux<4.20')
+makedepends=('linux-headers>=4.19' 'linux-headers<4.20')
+_extramodules=extramodules-ARCH
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz";)
+md5sums=('5b116b31ace3604ddf9d1fc1f4bc5807')
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+  make KDIR=/lib/modules/${_kernver}/build
+}
+
+package_bbswitch() {
+  cd ${pkgbase}-${pkgver}
+  install -Dt "${pkgdir}/usr/lib/modules/${_extramodules}" -m644 *.ko
+  find "${pkgdir}" -name '*.ko' -exec xz {} +
+}
+
+package_bbswitch-dkms() {
+  depends=('dkms')
+  conflicts=('bbswitch')
+  provides=('bbswitch')
+
+  cd ${pkgbase}-${pkgver}
+  install -Dt "${pkgdir}/usr/src/${pkgbase}-${pkgver}" -m644 Makefile 
bbswitch.c dkms/dkms.conf
+}