1 # Contributor: Aaron Griffin <aaron@archlinux.org>
2 # Contributor: Aurelien Foret <orelien@chez.com>
7 pkgdesc="Utilities for infrared communication between devices"
8 url="http://irda.sourceforge.net/"
11 backup=(etc/conf.d/irda)
12 makedepends=('pciutils')
14 source=(http://downloads.sourceforge.net/irda/$pkgname-$pkgver.tar.gz
15 irda irda.conf.d irda.patch)
17 md5sums=('84dc12aa4c3f61fccb8d8919bf4079bb'
18 '8f7d38590d089041e5246eb0ee3c8291'
19 '1a9c76b74faa993cc900152361798c50'
20 'f9e0ba20e1047ee82af17698cb115a7d')
23 cd $srcdir/$pkgname-$pkgver
25 patch -Np1 -i $srcdir/irda.patch
26 make prefix=/usr RPM_BUILD_ROOT=$pkgdir ROOT=$pkgdir || return 1
28 mkdir -p $pkgdir/usr/{s,}bin
29 make ROOT=$pkgdir PREFIX=$pkgdir install || return 1
30 install -D -m755 ../irda $pkgdir/etc/rc.d/irda
31 install -D -m644 ../irda.conf.d $pkgdir/etc/conf.d/irda
34 install -d ${pkgdir}/usr/share/
35 mv ${pkgdir}/usr/man ${pkgdir}/usr/share/ || return 1