summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8b7b63e2ba3085afeba5d4e63f8c79010b4b4161 (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
45
46
# This PKGBUILD is part of the VDR4Arch project [https://github.com/vdr4arch]

# Maintainer: Manuel Reimer <manuel.reimer@gmx.de>
pkgname=irmplircd
pkgver=20141124
_gitver=98d9b36ee6037ff41919b43e2127a041a8d02695
pkgrel=3
pkgdesc="zeroconf LIRC daemon that reads IRMP events from the USB IR Remote Receiver"
url="https://github.com/realglotzi/irmplircd"
arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h')
license=('GPL2')
depends=('gcc-libs')
makedepends=('git')
backup=("etc/irmp_stm32.map")
install=irmplircd.install
source=("git+https://github.com/realglotzi/irmplircd.git#commit=$_gitver"
        'irmplircd.tmpfiles'
        'irmplircd.service'
        '80-irmp.rules')
md5sums=('SKIP'
         'febf25c154a7d36f01159e84f26c2d9a'
         'cfa3ab62473580d8f12aa1eea751ef19'
         '6d88605403574e3f3e74cca885b531f0')

pkgver() {
  cd "${srcdir}/irmplircd"
  git log -1 --pretty=format:%ad --date=short | sed 's/-//g'
}

build() {
  cd "${srcdir}/irmplircd"
  CFLAGS+=" -Ic_hashmap"
  make
}

package() {
  cd "${srcdir}/irmplircd"
  make BINDIR="${pkgdir}/usr/bin" SHAREDIR="${pkgdir}/usr/share" install

  install -Dm644 "${srcdir}/irmplircd.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/irmplircd.conf"
  install -Dm644 "${srcdir}/80-irmp.rules" "$pkgdir/usr/lib/udev/rules.d/80-irmp.rules"
  install -Dm644 "${srcdir}/irmplircd.service" "$pkgdir/usr/lib/systemd/system/irmplircd.service"

  mkdir -p "${pkgdir}/etc"
  echo -n > "${pkgdir}/etc/irmp_stm32.map"
}