summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorChristopher Reimer2015-08-10 13:38:47 +0200
committerChristopher Reimer2015-08-10 13:38:47 +0200
commit585998c86c01aa4df3c68625b0236e05b035b7ec (patch)
treee9e475224bf34124c3748da10188cdadbb92f0b5 /PKGBUILD
downloadaur-585998c86c01aa4df3c68625b0236e05b035b7ec.tar.gz
Sync from VDR4Arch (https://github.com/VDR4Arch/vdr4arch/commit/7f69ddab9523aff9d6ed3ca4c5b511d9ad07e879)
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a423c75b268
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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=2
+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"
+}