diff options
author | Sergej Pupykin | 2016-04-18 22:12:52 +0300 |
---|---|---|
committer | Sergej Pupykin | 2016-04-18 22:12:52 +0300 |
commit | 6595cc310657db898db2915cb5c286c2bb8f3307 (patch) | |
tree | cfd2207e5098b1b23c63063ef29e6cbf834a0080 | |
download | aur-6595cc310657db898db2915cb5c286c2bb8f3307.tar.gz |
init
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 47 | ||||
-rw-r--r-- | irda.service | 14 |
3 files changed, 80 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..57a8db7b5e9d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +# Generated by mksrcinfo v8 +# Mon Apr 18 19:12:34 UTC 2016 +pkgbase = irda-utils + pkgdesc = Utilities for infrared communication between devices + pkgver = 0.9.18 + pkgrel = 3 + url = http://irda.sourceforge.net + arch = i686 + arch = x86_64 + license = GPL + depends = glib2 + depends = pciutils + source = http://downloads.sourceforge.net/irda/irda-utils-0.9.18.tar.gz + source = irda.service + md5sums = 84dc12aa4c3f61fccb8d8919bf4079bb + md5sums = cdcee6ba50ce437a9804250119134ee7 + +pkgname = irda-utils + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f05684f7434d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Contributor: Franco Tortoriello +# Contributor: Aaron Griffin <aaron@archlinux.org> +# Contributor: Aurelien Foret <orelien@chez.com> + +pkgname=irda-utils +pkgver=0.9.18 +pkgrel=3 +pkgdesc='Utilities for infrared communication between devices' +url="http://irda.sourceforge.net" +arch=(i686 x86_64) +license=(GPL) +depends=(glib2 pciutils) +source=(http://downloads.sourceforge.net/irda/$pkgname-$pkgver.tar.gz + irda.service) +md5sums=('84dc12aa4c3f61fccb8d8919bf4079bb' + 'cdcee6ba50ce437a9804250119134ee7') + +prepare(){ + cd "$srcdir/$pkgname-$pkgver" + + # Fix header locations + sed -e 's|asm/io.h|sys/io.h|' -i \ + findchip/{winbond,smc,nsc}.c pcmcia/ircard_cs.c + + sed -i -e 's|inline ||g' irdadump/*.c + + # Fix paths + sed -e 's|$(PREFIX)/usr/man|$(ROOT)/usr/share/man|' -i man/Makefile + sed -e 's|/usr/sbin/|$(ROOT)/usr/bin|' -i irnetd/Makefile + # /usr/sbin -> /usr/bin + sed -e 's|sbin|bin|' -i \ + {irdaping,irdadump,findchip,irattach,smcinit}/Makefile +} + +build() { + cd "$srcdir/$pkgname-$pkgver" + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + install -d "$pkgdir/usr/bin" + make ROOT="$pkgdir" install + + install -Dm644 "$srcdir/irda.service" "$pkgdir/usr/lib/systemd/system/irda.service" + install -Dm644 etc/modules.conf.irda "$pkgdir/etc/modprobe.conf.irda" +} diff --git a/irda.service b/irda.service new file mode 100644 index 000000000000..69fb6d500fa9 --- /dev/null +++ b/irda.service @@ -0,0 +1,14 @@ +[Unit] +Description=IrDA Support +After=syslog.target + +[Service] +Type=forking +PIDFile=/var/run/irattach.pid +ExecStartPre=/sbin/modprobe -qab ircomm-tty irtty-sir irnet +ExecStart=/usr/bin/irattach /dev/ttyUSB0 -s +StandardOutput=syslog +StandardError=syslog + +[Install] +WantedBy=multi-user.target |