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

Andreas Radke andyrtr at archlinux.org
Fri Jan 6 22:52:27 UTC 2017


    Date: Friday, January 6, 2017 @ 22:52:26
  Author: andyrtr
Revision: 205843

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

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

-----------------------------------------------+
 community-testing-i686/PKGBUILD               |   34 ++++++++++++++++++++++++
 community-testing-i686/bbswitch-lts.install   |   12 ++++++++
 community-testing-x86_64/PKGBUILD             |   34 ++++++++++++++++++++++++
 community-testing-x86_64/bbswitch-lts.install |   12 ++++++++
 4 files changed, 92 insertions(+)

Copied: bbswitch-lts/repos/community-testing-i686/PKGBUILD (from rev 205842, bbswitch-lts/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD	                        (rev 0)
+++ community-testing-i686/PKGBUILD	2017-01-06 22:52:26 UTC (rev 205843)
@@ -0,0 +1,34 @@
+# $Id: PKGBUILD 120281 2014-10-06 16:24:13Z tpowa $
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: M0Rf30
+# Contributor: Samsagax <samsagax at gmail.com>
+
+pkgname=bbswitch-lts
+_basename=bbswitch
+pkgver=0.8
+_extramodules=extramodules-4.4-lts # Don't forget to update bbswitch-lts.install
+pkgrel=25
+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-lts>=4.4.40' 'linux-lts<4.5')
+makedepends=('linux-lts-headers>=4.4.40' 'linux-lts-headers<4.5')
+install=${pkgname}.install
+source=("${_basename}-$pkgver.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz")
+md5sums=('5b116b31ace3604ddf9d1fc1f4bc5807')
+
+build() {
+  cd ${srcdir}/${_basename}-${pkgver}
+
+  _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+
+  make KDIR=/lib/modules/${_kernver}/build
+}
+
+package() {
+  cd ${srcdir}/${_basename}-${pkgver}
+   
+  install -Dm644 bbswitch.ko "${pkgdir}"/usr/lib/modules/${_extramodules}/bbswitch.ko
+  gzip "${pkgdir}/usr/lib/modules/${_extramodules}/bbswitch.ko"                      
+}

Copied: bbswitch-lts/repos/community-testing-i686/bbswitch-lts.install (from rev 205842, bbswitch-lts/trunk/bbswitch-lts.install)
===================================================================
--- community-testing-i686/bbswitch-lts.install	                        (rev 0)
+++ community-testing-i686/bbswitch-lts.install	2017-01-06 22:52:26 UTC (rev 205843)
@@ -0,0 +1,12 @@
+post_install() {
+    EXTRAMODULES='extramodules-4.4-lts'
+    depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_upgrade() {
+    post_install
+}
+
+post_remove() {
+    post_install
+}

Copied: bbswitch-lts/repos/community-testing-x86_64/PKGBUILD (from rev 205842, bbswitch-lts/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2017-01-06 22:52:26 UTC (rev 205843)
@@ -0,0 +1,34 @@
+# $Id: PKGBUILD 120281 2014-10-06 16:24:13Z tpowa $
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: M0Rf30
+# Contributor: Samsagax <samsagax at gmail.com>
+
+pkgname=bbswitch-lts
+_basename=bbswitch
+pkgver=0.8
+_extramodules=extramodules-4.4-lts # Don't forget to update bbswitch-lts.install
+pkgrel=25
+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-lts>=4.4.40' 'linux-lts<4.5')
+makedepends=('linux-lts-headers>=4.4.40' 'linux-lts-headers<4.5')
+install=${pkgname}.install
+source=("${_basename}-$pkgver.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz")
+md5sums=('5b116b31ace3604ddf9d1fc1f4bc5807')
+
+build() {
+  cd ${srcdir}/${_basename}-${pkgver}
+
+  _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+
+  make KDIR=/lib/modules/${_kernver}/build
+}
+
+package() {
+  cd ${srcdir}/${_basename}-${pkgver}
+   
+  install -Dm644 bbswitch.ko "${pkgdir}"/usr/lib/modules/${_extramodules}/bbswitch.ko
+  gzip "${pkgdir}/usr/lib/modules/${_extramodules}/bbswitch.ko"                      
+}

Copied: bbswitch-lts/repos/community-testing-x86_64/bbswitch-lts.install (from rev 205842, bbswitch-lts/trunk/bbswitch-lts.install)
===================================================================
--- community-testing-x86_64/bbswitch-lts.install	                        (rev 0)
+++ community-testing-x86_64/bbswitch-lts.install	2017-01-06 22:52:26 UTC (rev 205843)
@@ -0,0 +1,12 @@
+post_install() {
+    EXTRAMODULES='extramodules-4.4-lts'
+    depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_upgrade() {
+    post_install
+}
+
+post_remove() {
+    post_install
+}



More information about the arch-commits mailing list