summaryrefslogtreecommitdiff
blob: 3de6d2921fdf817178d447dec29fa1e5f96d8427 (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
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

inherit linux-mod

if [[ "${PV}" = "9999" ]]; then
	inherit git-r3
	EGIT_REPO_URI="git://github.com/danieleds/als.git"
	KEYWORDS=""
else
	COMMIT_ID="150684d1b73e1405609502e1166ba878c42dbb18"
	SRC_URI="https://github.com/danieleds/als/archive/${COMMIT_ID}.tar.gz -> ${P}-git.tar.gz"
	KEYWORDS="~amd64"
	S=${WORKDIR}/als-${COMMIT_ID}
fi

DESCRIPTION="A kernel module for the ASUS Zenbook Ambient Light Sensor Driver"
HOMEPAGE="http://github.com/danieleds/als"

LICENSE="GPL-2"
SLOT="0"
IUSE=""

MODULE_NAMES="als(misc:${S})"
BUILD_TARGETS="all"

src_compile(){
	BUILD_PARAMS="KDIR=${KV_OUT_DIR} M=${S}"
	linux-mod_src_compile
}