blob: ab501bd65735374ac4f55c2ca75d865f028707a2 (
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
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit toolchain-funcs
DESCRIPTION="Tool to read and control rfkill status through /dev/rfkill"
HOMEPAGE="https://wireless.kernel.org/en/users/Documentation/rfkill"
SRC_URI="https://www.kernel.org/pub/software/network/${PN}/${P}.tar.xz"
LICENSE="ISC"
SLOT="0"
KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86"
IUSE=""
RDEPEND="!>=sys-apps/util-linux-2.31_rc1"
DEPEND=""
src_prepare() {
sed -i 's#rfkill.8.gz#rfkill.8#' Makefile
default
}
src_compile() {
emake CC="$(tc-getCC)" LD="$(tc-getLD)" V=1
}
src_install() {
emake install V=1 DESTDIR="${D}"
}
|