summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-laptop/zenbook-als-module/zenbook-als-module-9999.ebuild')
-rw-r--r--app-laptop/zenbook-als-module/zenbook-als-module-9999.ebuild33
1 files changed, 33 insertions, 0 deletions
diff --git a/app-laptop/zenbook-als-module/zenbook-als-module-9999.ebuild b/app-laptop/zenbook-als-module/zenbook-als-module-9999.ebuild
new file mode 100644
index 0000000..3de6d29
--- /dev/null
+++ b/app-laptop/zenbook-als-module/zenbook-als-module-9999.ebuild
@@ -0,0 +1,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
+}