# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 inherit desktop udev unpacker DESCRIPTION="Allows you to pair any remote control with your computer or media center" HOMEPAGE="https://flirc.tv/" SRC_URI=" amd64? ( http://apt.flirc.tv/arch/x86_64/flirc.latest.x86_64.tar.gz -> ${P}_amd64.tar.gz ) arm? ( http://apt.flirc.tv/arch/armhf/flirc.latest.armhf.tar.gz -> ${P}_arm.tar.gz ) x86? ( http://apt.flirc.tv/arch/i386/flirc.latest.i386.tar.gz -> ${P}_x86.tar.gz )" LICENSE="all-rights-reserved" SLOT="0" KEYWORDS="-* ~amd64 ~arm ~x86" IUSE="+qt5" RESTRICT="bindist mirror strip" S="${WORKDIR}" DEPEND="" RDEPEND="virtual/libusb:1 dev-libs/hidapi qt5? ( dev-qt/qtcore:5 dev-qt/qtgui:5 dev-qt/qtnetwork:5 dev-qt/qtsvg:5 dev-qt/qtwidgets:5 dev-qt/qtxml:5 dev-qt/qtxmlpatterns:5 )" QA_PREBUILT="/usr/bin/*" src_prepare() { # Extract files from the image file: cd ${P^} ./FlircApp-3.27.16-x86_64.AppImage --appimage-extract default } # FIXME: This installs files that are in the .deb but not the .tar.gz src_install() { echo pwd $(pwd) echo S $S dobin ${P^}/flirc_util dobin ${P^}/irtools #doman ${P^}/squashfs-root/usr/share/doc/flirc/flirc_util.1 if use qt5 ; then dobin ${P^}/Flirc #doman ${P^}/squashfs-root/usr/share/doc/flirc/Flirc.1 #doicon ${P^}/squashfs-root/usr/share/pixmaps/Flirc.png domenu ${P^}/squashfs-root/Flirc.desktop fi #udev_newrules ${P^}/squashfs-root/etc/udev/rules.d/99-flirc.rules 51-flirc.rules }