[arch-commits] Commit in bbswitch/repos (2 files)
Jan Steffens
heftig at archlinux.org
Thu Mar 12 19:00:59 UTC 2020
Date: Thursday, March 12, 2020 @ 19:00:59
Author: heftig
Revision: 595432
archrelease: copy trunk to community-testing-x86_64
Added:
bbswitch/repos/community-testing-x86_64/
bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 595422, bbswitch/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 595422, bbswitch/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2020-03-12 19:00:59 UTC (rev 595432)
@@ -0,0 +1,38 @@
+# 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
+pkgrel=296
+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")
+md5sums=('5b116b31ace3604ddf9d1fc1f4bc5807')
+
+build() {
+ cd ${pkgbase}-${pkgver}
+ make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+ depends=('linux')
+
+ cd ${pkgbase}-${pkgver}
+ _extradir="/usr/lib/modules/$(</usr/src/linux/version)/extramodules"
+ install -Dt "${pkgdir}${_extradir}" -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
+}
More information about the arch-commits
mailing list