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

Jan Steffens heftig at archlinux.org
Sat Jul 29 10:37:22 UTC 2017


    Date: Saturday, July 29, 2017 @ 10:37:19
  Author: heftig
Revision: 246780

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  bbswitch/repos/community-staging-i686/
  bbswitch/repos/community-staging-i686/PKGBUILD
    (from rev 246779, bbswitch/trunk/PKGBUILD)
  bbswitch/repos/community-staging-i686/bbswitch.install
    (from rev 246779, bbswitch/trunk/bbswitch.install)
  bbswitch/repos/community-staging-x86_64/
  bbswitch/repos/community-staging-x86_64/PKGBUILD
    (from rev 246779, bbswitch/trunk/PKGBUILD)
  bbswitch/repos/community-staging-x86_64/bbswitch.install
    (from rev 246779, bbswitch/trunk/bbswitch.install)

-------------------------------------------+
 community-staging-i686/PKGBUILD           |   47 ++++++++++++++++++++++++++++
 community-staging-i686/bbswitch.install   |   12 +++++++
 community-staging-x86_64/PKGBUILD         |   47 ++++++++++++++++++++++++++++
 community-staging-x86_64/bbswitch.install |   12 +++++++
 4 files changed, 118 insertions(+)

Copied: bbswitch/repos/community-staging-i686/PKGBUILD (from rev 246779, bbswitch/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2017-07-29 10:37:19 UTC (rev 246780)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: M0Rf30
+# Contributor: Samsagax <samsagax at gmail.com>
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+_extramodules=extramodules-4.12-ARCH # Don't forget to update bbswitch.install
+pkgrel=75
+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.12' 'linux-headers<4.13' 'linux>=4.12' 'linux<4.13')
+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.12' 'linux<4.13')
+  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-staging-i686/bbswitch.install (from rev 246779, bbswitch/trunk/bbswitch.install)
===================================================================
--- community-staging-i686/bbswitch.install	                        (rev 0)
+++ community-staging-i686/bbswitch.install	2017-07-29 10:37:19 UTC (rev 246780)
@@ -0,0 +1,12 @@
+post_install() {
+    EXTRAMODULES='extramodules-4.12-ARCH'
+    depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_upgrade() {
+    post_install
+}
+
+post_remove() {
+    post_install
+}

Copied: bbswitch/repos/community-staging-x86_64/PKGBUILD (from rev 246779, bbswitch/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-07-29 10:37:19 UTC (rev 246780)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: M0Rf30
+# Contributor: Samsagax <samsagax at gmail.com>
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+_extramodules=extramodules-4.12-ARCH # Don't forget to update bbswitch.install
+pkgrel=75
+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.12' 'linux-headers<4.13' 'linux>=4.12' 'linux<4.13')
+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.12' 'linux<4.13')
+  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-staging-x86_64/bbswitch.install (from rev 246779, bbswitch/trunk/bbswitch.install)
===================================================================
--- community-staging-x86_64/bbswitch.install	                        (rev 0)
+++ community-staging-x86_64/bbswitch.install	2017-07-29 10:37:19 UTC (rev 246780)
@@ -0,0 +1,12 @@
+post_install() {
+    EXTRAMODULES='extramodules-4.12-ARCH'
+    depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_upgrade() {
+    post_install
+}
+
+post_remove() {
+    post_install
+}



More information about the arch-commits mailing list