blob: d18fbef364ad569c89594810dc7062050d1f34d3 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
EAPI=6
MODULES_OPTIONAL_USE="module"
inherit linux-mod git-r3
DESCRIPTION="RC-Transmitter ppm signal to joystick input converter through the microphone jack"
HOMEPAGE="https://github.com/nexx512/txppm"
EGIT_REPO_URI="https://github.com/nexx512/txppm.git"
if [[ ${PV} == 9999 ]]; then
KEYWORDS=""
else
EGIT_COMMIT="f3bd54cecd053fc5834986e6adaa1067af8a0a61"
KEYWORDS="amd64 ~x86"
fi
LICENSE="GPL-3"
SLOT="0"
IUSE="+module"
DEPEND="media-libs/portaudio"
RDEPEND="${DEPEND}"
MODULE_NAMES="tx(kernel/drivers/misc:module)"
BUILD_TARGETS="clean all"
CONFIG_CHECK=""
pkg_setup() {
linux-mod_pkg_setup
}
src_compile() {
#BUILD_PARAMS="KERNELDIR=${KERNEL_DIR}"
linux-mod_src_compile
emake -C software WITH_GUI=1
}
src_install() {
linux-mod_src_install
cd software
dobin ppm2tx
dobin ppm2tx-gui
dodir /usr/share/txppm
insinto /usr/share/txppm
doins logo.png
insinto /usr/share/pixmaps
doins icon.png
insinto /usr/share/applications
doins txppm.desktop
}
pkg_postinst() {
linux-mod_pkg_postinst
}
|