blob: 60492c50a482838b67af3af854533bb08b9dbcc0 (
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
35
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
S="${WORKDIR}/hwids-${P}"
_emake() {
gkmake \
V=1 \
NET=yes \
PCI=yes \
UDEV=yes \
USB=yes \
"$@"
}
src_prepare() {
default
# we cannot run host's udevadm
sed -i -e '/udevadm hwdb/d' Makefile || die
}
src_compile() {
_emake
}
src_install() {
_emake \
HWDBDIR="$(get_udevdir)/hwdb.d" \
DESTDIR="${D}" \
install
rm -rf \
"${D}"/usr/share
}
|