blob: ba449334ffc050ba33bf0fb11d8945b25210565f (
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
34
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit git-r3 linux-info linux-mod
DESCRIPTION="A linux kernel module that enables calls to ACPI"
HOMEPAGE="https://github.com/nix-community/acpi_call"
EGIT_REPO_URI="https://github.com/teleshoes/acpi_call.git"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS=""
IUSE="examples"
BUILD_TARGETS="default"
CONFIG_CHECK="ACPI"
MODULE_NAMES="acpi_call(misc:${S})"
src_compile() {
BUILD_PARAMS="KDIR=${KV_OUT_DIR} M=${S}"
linux-mod_src_compile
}
src_install() {
linux-mod_src_install
if use examples; then
insinto /usr/share/acpi_call
doins examples/*.sh
fi
}
|