[arch-commits] Commit in bbswitch/repos (6 files)
Sven-Hendrik Haase
svenstaro at nymeria.archlinux.org
Sun Mar 17 03:44:01 UTC 2013
Date: Sunday, March 17, 2013 @ 04:44:00
Author: svenstaro
Revision: 86441
archrelease: copy trunk to community-testing-i686, community-testing-x86_64
Added:
bbswitch/repos/community-testing-i686/
bbswitch/repos/community-testing-i686/PKGBUILD
(from rev 86440, bbswitch/trunk/PKGBUILD)
bbswitch/repos/community-testing-i686/bbswitch.install
(from rev 86440, bbswitch/trunk/bbswitch.install)
bbswitch/repos/community-testing-x86_64/
bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 86440, bbswitch/trunk/PKGBUILD)
bbswitch/repos/community-testing-x86_64/bbswitch.install
(from rev 86440, bbswitch/trunk/bbswitch.install)
-------------------------------------------+
community-testing-i686/PKGBUILD | 35 ++++++++++++++++++++++++++++
community-testing-i686/bbswitch.install | 12 +++++++++
community-testing-x86_64/PKGBUILD | 35 ++++++++++++++++++++++++++++
community-testing-x86_64/bbswitch.install | 12 +++++++++
4 files changed, 94 insertions(+)
Copied: bbswitch/repos/community-testing-i686/PKGBUILD (from rev 86440, bbswitch/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2013-03-17 03:44:00 UTC (rev 86441)
@@ -0,0 +1,35 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: M0Rf30
+# Contributor: Samsagax <samsagax at gmail.com>
+
+pkgname=bbswitch
+pkgver=0.5
+_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.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"
+ "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}
+}
+
+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-i686/bbswitch.install (from rev 86440, bbswitch/trunk/bbswitch.install)
===================================================================
--- community-testing-i686/bbswitch.install (rev 0)
+++ community-testing-i686/bbswitch.install 2013-03-17 03:44:00 UTC (rev 86441)
@@ -0,0 +1,12 @@
+post_install() {
+ EXTRAMODULES='extramodules-3.8-ARCH'
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 86440, bbswitch/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2013-03-17 03:44:00 UTC (rev 86441)
@@ -0,0 +1,35 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: M0Rf30
+# Contributor: Samsagax <samsagax at gmail.com>
+
+pkgname=bbswitch
+pkgver=0.5
+_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.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"
+ "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}
+}
+
+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 86440, bbswitch/trunk/bbswitch.install)
===================================================================
--- community-testing-x86_64/bbswitch.install (rev 0)
+++ community-testing-x86_64/bbswitch.install 2013-03-17 03:44:00 UTC (rev 86441)
@@ -0,0 +1,12 @@
+post_install() {
+ EXTRAMODULES='extramodules-3.8-ARCH'
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
More information about the arch-commits
mailing list