[arch-commits] Commit in bbswitch/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Fri Oct 11 19:19:36 UTC 2019
Date: Friday, October 11, 2019 @ 19:19:35
Author: heftig
Revision: 515101
0.8-258: kernel 5.3.6.arch1-1; removal of extramodules-ARCH
Modified:
bbswitch/trunk/PKGBUILD
----------+
PKGBUILD | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-11 19:19:34 UTC (rev 515100)
+++ PKGBUILD 2019-10-11 19:19:35 UTC (rev 515101)
@@ -5,7 +5,7 @@
pkgbase=bbswitch
pkgname=(bbswitch bbswitch-dkms)
pkgver=0.8
-pkgrel=257
+pkgrel=258
pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus laptops"
arch=('x86_64')
url="http://github.com/Bumblebee-Project/bbswitch"
@@ -12,19 +12,18 @@
license=('GPL')
depends=('linux')
makedepends=('linux-headers')
-_extramodules=extramodules-ARCH
source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz")
md5sums=('5b116b31ace3604ddf9d1fc1f4bc5807')
build() {
cd ${pkgbase}-${pkgver}
- _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
- make KDIR=/lib/modules/${_kernver}/build
+ make KDIR=/usr/src/linux
}
package_bbswitch() {
cd ${pkgbase}-${pkgver}
- install -Dt "${pkgdir}/usr/lib/modules/${_extramodules}" -m644 *.ko
+ _extradir="/usr/lib/modules/$(</usr/src/linux/version)/extramodules"
+ install -Dt "${pkgdir}${_extradir}" -m644 *.ko
find "${pkgdir}" -name '*.ko' -exec xz {} +
}
More information about the arch-commits
mailing list