blob: c87d20cb56fd9d23d1c8c3f1a8cf958a1f57b51f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Maintainer: Yegor Alexeyev <yegor.alexeyev@gmail.com>
# Contributor: Christian Hesse <mail@eworm.de>
# Contributor: Constantinko <helllamer@gmail.com>
#it is configured to be build as backlight(look at make CFLAGS parameter)
pkgname=pixel_keyboard_backlight_driver
pkgver=0.1.6
pkgrel=1
pkgdesc='Chromebook Pixel keyboard backlight kernel driver'
arch=('i686' 'x86_64')
url='https://github.com/xhcnb/pixel_keyboard_backlight_driver'
license=('GPL')
source=('git://github.com/xhcnb/pixel_keyboard_backlight_driver.git')
md5sums=('SKIP')
build() {
cd ${srcdir}/${pkgname}
make CFLAGS_pixel_kb_backlight.o=-DKB_BACKLIGHT=1
}
package() {
kernel_release=`uname -r`
kernel_major_minor=${kernel_release%.*}
mkdir -p ${pkgdir}/usr/lib/modules/extramodules-${kernel_major_minor}-ARCH
install -D -m0755 ${srcdir}/${pkgname}/pixel_kb_backlight.ko ${pkgdir}/usr/lib/modules/extramodules-${kernel_major_minor}-ARCH/
install -D -m0755 ${srcdir}/${pkgname}/chromeos_keyboard_bl.ko ${pkgdir}/usr/lib/modules/extramodules-${kernel_major_minor}-ARCH/
}
|