From 717a40a4814c1cf025eb6a5bd2a526522d830538 Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Tue, 13 Jan 2015 17:48:02 +0000
Subject: lirc: link /etc/lirc/lircd.conf to /etc/lircd.conf

---
 abs/core/lirc/PKGBUILD    | 8 ++++++--
 abs/core/lirc/__changelog | 3 ++-
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/abs/core/lirc/PKGBUILD b/abs/core/lirc/PKGBUILD
index ecffb06..695b42c 100644
--- a/abs/core/lirc/PKGBUILD
+++ b/abs/core/lirc/PKGBUILD
@@ -5,7 +5,7 @@ pkgbase=lirc
 pkgname=('lirc' 'lirc-utils')
 _pkgver=0.9.1a
 [[ $_pkgver =~ [a-z]$ ]] && pkgver="${_pkgver:0:-1}.${_pkgver: -1}" || pkgver="$_pkgver"
-pkgrel=12
+pkgrel=13
 epoch=1
 _extramodules=extramodules-3.18-ARCH
 arch=('i686' 'x86_64')
@@ -78,7 +78,7 @@ package_lirc() {
 
 package_lirc-utils() {
   pkgdesc="Linux Infrared Remote Control utils"
-  depends=('alsa-lib' 'libx11' 'libftdi-compat' 'libirman')
+  depends=('alsa-lib' 'libx11' 'libftdi-compat' 'libirman' 'iguanair')
   optdepends=('python2: pronto2lirc utility')
   options=('strip')
   backup=('etc/lirc/lirc_options.conf' 'etc/lirc/lircd.conf' 'etc/lirc/lircmd.conf')
@@ -99,4 +99,8 @@ package_lirc-utils() {
     
   # remove built modules
   rm -r "${pkgdir}/usr/lib/modules"
+
+  # LinHES remotes service needs etc/lirc/lircd.conf symlinked to etc/lircd.conf
+  rm -f  "${pkgdir}/etc/lirc/lircd.conf"
+  ln -s "/etc/lircd.conf" "${pkgdir}/etc/lirc/lircd.conf"
 }
diff --git a/abs/core/lirc/__changelog b/abs/core/lirc/__changelog
index 19c9302..db66a42 100644
--- a/abs/core/lirc/__changelog
+++ b/abs/core/lirc/__changelog
@@ -1 +1,2 @@
-added 'iguanair' to make depends and package depends
+PKGBUILD: add 'iguanair' to make depends and package_lirc and package_lirc-utils depends
+PKGBUILD: symlink /etc/lircd.conf to package_lirc-utils
-- 
cgit v0.12

