[arch-commits] Commit in bbswitch/repos/community-testing-i686 (2 files)
Tobias Powalowski
tpowa at archlinux.org
Mon Oct 6 16:40:48 UTC 2014
Date: Monday, October 6, 2014 @ 18:40:47
Author: tpowa
Revision: 120291
archrelease: copy trunk to community-testing-i686, community-testing-x86_64
Added:
bbswitch/repos/community-testing-i686/PKGBUILD
(from rev 120290, bbswitch/trunk/PKGBUILD)
bbswitch/repos/community-testing-i686/bbswitch.install
(from rev 120290, bbswitch/trunk/bbswitch.install)
------------------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
bbswitch.install | 12 ++++++++++++
2 files changed, 45 insertions(+)
Copied: bbswitch/repos/community-testing-i686/PKGBUILD (from rev 120290, bbswitch/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2014-10-06 16:40:47 UTC (rev 120291)
@@ -0,0 +1,33 @@
+# $Id$
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: M0Rf30
+# Contributor: Samsagax <samsagax at gmail.com>
+
+pkgname=bbswitch
+pkgver=0.8
+_extramodules=extramodules-3.17-ARCH # Don't forget to update bbswitch.install
+pkgrel=18
+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.17' 'linux<3.18')
+makedepends=('linux-headers>=3.17' 'linux-headers<3.18')
+install=bbswitch.install
+source=("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-i686/bbswitch.install (from rev 120290, bbswitch/trunk/bbswitch.install)
===================================================================
--- bbswitch.install (rev 0)
+++ bbswitch.install 2014-10-06 16:40:47 UTC (rev 120291)
@@ -0,0 +1,12 @@
+post_install() {
+ EXTRAMODULES='extramodules-3.17-ARCH'
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
More information about the arch-commits
mailing list