updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / irda-utils / PKGBUILD
blob7af5a17ed553a7cb20537ce097dad4c4a4fa83ca
1 # Contributor: Aaron Griffin <aaron@archlinux.org>
2 # Contributor: Aurelien Foret <orelien@chez.com>
4 pkgname=irda-utils
5 pkgver=0.9.18
6 pkgrel=2
7 pkgdesc="Utilities for infrared communication between devices"
8 url="http://irda.sourceforge.net/"
9 arch=(i686 x86_64)
10 license=(GPL)
11 backup=(etc/conf.d/irda)
12 makedepends=('pciutils')
13 depends=('glib2')
14 source=(http://downloads.sourceforge.net/irda/$pkgname-$pkgver.tar.gz
15         irda irda.conf.d irda.patch)
16 options=(!emptydirs)
17 md5sums=('84dc12aa4c3f61fccb8d8919bf4079bb'
18          '8f7d38590d089041e5246eb0ee3c8291'
19          '1a9c76b74faa993cc900152361798c50'
20          'f9e0ba20e1047ee82af17698cb115a7d')
22 build(){
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
33   # fix man path
34   install -d ${pkgdir}/usr/share/
35   mv ${pkgdir}/usr/man ${pkgdir}/usr/share/ || return 1