# This PKGBUILD is part of the VDR4Arch project [https://github.com/vdr4arch] # Maintainer: Christopher Reimer pkgname=vdr-remote pkgver=0.7.0 _vdrapi=2.6.7 pkgrel=13 pkgdesc="Extends the remote control capabilities of vdr" url="http://www.escape-edv.de/endriss/vdr/" arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h') license=('GPL2') depends=('gcc-libs' "vdr-api=${_vdrapi}") _plugname=${pkgname//vdr-/} source=("http://www.escape-edv.de/endriss/vdr/${pkgname}-${pkgver}.tgz" 'av7110_ir_vdr_perms.conf' '70-remote-device.rules' "50-$_plugname.conf") backup=("etc/vdr/conf.avail/50-$_plugname.conf") md5sums=('21989c0d244dc0de213134be4b8a4fdc' 'bc604e2dff886fb683048590fc5f63c8' '773e9b84837b51f3d0aeff8035c6c3ce' '6b163c3d23df45423652f5559f8c6a61') prepare() { cd "${srcdir}/${_plugname}-${pkgver}" # https://www.vdr-portal.de/forum/index.php?thread/135372-announce-vdr-version-2-6-2-freigegeben/&postID=1354402#post1354402 sed -i 's/new cLircRemote(devnam\[i\]);/cLircRemote::NewLircRemote(devnam[i]);/' remote.c } build() { cd "${srcdir}/${_plugname}-${pkgver}" make } package() { cd "${srcdir}/${_plugname}-${pkgver}" make DESTDIR="${pkgdir}" install install -Dm644 ${srcdir}/70-remote-device.rules "$pkgdir/usr/lib/udev/rules.d/70-remote-device.rules" install -Dm644 ${srcdir}/av7110_ir_vdr_perms.conf "$pkgdir/usr/lib/modprobe.d/av7110_ir_vdr_perms.conf" install -Dm644 "$srcdir/50-$_plugname.conf" "$pkgdir/etc/vdr/conf.avail/50-$_plugname.conf" }