From 776c9dbfde708be4c2bcbc67418debc1462baf09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sat, 27 Jan 2018 17:52:35 +0100 Subject: Try to add txppm --- media-sound/txppm/txppm-180112-r1.ebuild | 57 ++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 media-sound/txppm/txppm-180112-r1.ebuild 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 +} + -- cgit v1.2.3