2018-07-16 20:45:36 +02:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
2022-08-07 09:48:43 +00:00
|
|
|
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
2011-01-09 18:42:04 +01:00
|
|
|
|
2010-09-27 23:28:54 +02:00
|
|
|
PKG_NAME="eventlircd"
|
2022-08-07 09:48:43 +00:00
|
|
|
PKG_VERSION="fd511a9cc7de6af4517604fdc2b3f0f5b64c2a81"
|
|
|
|
|
PKG_SHA256="4c7a93d31845085272e497611159910af69e37a0f70925f36880ba40f4693e23"
|
2010-09-27 23:28:54 +02:00
|
|
|
PKG_LICENSE="GPL"
|
2017-10-06 09:22:37 +01:00
|
|
|
PKG_SITE="https://github.com/LibreELEC/eventlircd"
|
2021-01-19 19:34:16 +00:00
|
|
|
PKG_URL="https://github.com/LibreELEC/eventlircd/archive/${PKG_VERSION}.tar.gz"
|
2014-01-30 14:30:42 +01:00
|
|
|
PKG_DEPENDS_TARGET="toolchain systemd lirc"
|
2010-09-27 23:28:54 +02:00
|
|
|
PKG_LONGDESC="The eventlircd daemon provides four functions for LIRC devices"
|
2017-10-24 23:23:02 +02:00
|
|
|
PKG_TOOLCHAIN="autotools"
|
2013-08-04 14:51:38 +02:00
|
|
|
|
2018-06-24 13:35:03 +02:00
|
|
|
PKG_CONFIGURE_OPTS_TARGET="--with-udev-dir=/usr/lib/udev \
|
|
|
|
|
--with-lircd-socket=/run/lirc/lircd"
|
2014-02-20 17:05:40 +01:00
|
|
|
|
2013-08-04 14:51:38 +02:00
|
|
|
post_makeinstall_target() {
|
|
|
|
|
# install our own evmap files and udev rules
|
2021-01-19 19:34:16 +00:00
|
|
|
rm -rf ${INSTALL}/etc/eventlircd.d
|
|
|
|
|
rm -rf ${INSTALL}/usr/lib/udev/rules.d
|
|
|
|
|
rm -rf ${INSTALL}/usr/lib/udev/lircd_helper
|
2013-08-04 14:51:38 +02:00
|
|
|
|
2021-01-19 19:34:16 +00:00
|
|
|
mkdir -p ${INSTALL}/etc/eventlircd.d
|
|
|
|
|
cp ${PKG_DIR}/evmap/*.evmap ${INSTALL}/etc/eventlircd.d
|
2013-08-04 14:51:38 +02:00
|
|
|
}
|
|
|
|
|
|
2013-08-04 15:06:54 +02:00
|
|
|
post_install() {
|
|
|
|
|
enable_service eventlircd.service
|
|
|
|
|
}
|