0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2024-12-15 20:20:30 +00:00
2024-06-15 05:47:52 +00:00

31 lines
1.1 KiB
Makefile

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="eventlircd"
PKG_VERSION="8f20b3196bf7085b6c90d86f1602fb29e3965cbc"
PKG_SHA256="029ad9eb554bdfd65fe285c9bef9f5eea7c3b0d97a84dd99a2eb65f80c1848fe"
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/LibreELEC/eventlircd"
PKG_URL="https://github.com/LibreELEC/eventlircd/archive/${PKG_VERSION}.tar.gz"
PKG_DEPENDS_TARGET="toolchain systemd lirc"
PKG_LONGDESC="The eventlircd daemon provides four functions for LIRC devices"
PKG_TOOLCHAIN="autotools"
PKG_CONFIGURE_OPTS_TARGET="--with-udev-dir=/usr/lib/udev \
--with-lircd-socket=/run/lirc/lircd"
post_makeinstall_target() {
# install our own evmap files and udev rules
rm -rf ${INSTALL}/etc/eventlircd.d
rm -rf ${INSTALL}/usr/lib/udev/rules.d
rm -rf ${INSTALL}/usr/lib/udev/lircd_helper
mkdir -p ${INSTALL}/etc/eventlircd.d
cp ${PKG_DIR}/evmap/*.evmap ${INSTALL}/etc/eventlircd.d
}
post_install() {
enable_service eventlircd.service
}