summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d14bf10da00551a4d85493842a8ca4ccc6b7b5b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# This PKGBUILD is part of the VDR4Arch project [https://github.com/vdr4arch]

# Maintainer: Christopher Reimer <mail+vdr4arch[at]c-reimer[dot]de>
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"
}