diff options
Diffstat (limited to 'media-sound')
-rw-r--r-- | media-sound/txppm/txppm-180112-r1.ebuild | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/media-sound/txppm/txppm-180112-r1.ebuild b/media-sound/txppm/txppm-180112-r1.ebuild new file mode 100644 index 0000000..e397e92 --- /dev/null +++ b/media-sound/txppm/txppm-180112-r1.ebuild @@ -0,0 +1,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="" + +DEPEND="" +RDEPEND="${DEPEND}" + +MODULE_NAMES="tx(kernel/drivers/misc:module)" +BUILD_TARGETS="module" +CONFIG_CHECK="" + +pkg_setup() { + linux-mod_pkg_setup +} + +src_compile() { + #BUILD_PARAMS="KERNELDIR=${KERNEL_DIR}" + linux-mod_src_compile + emake -C software +} + +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 +} + |