PKGBUILDs/extra/irda-utils/PKGBUILD
2009-10-09 21:23:22 -05:00

34 lines
1.1 KiB
Bash

# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
#Maintainer: Aaron Griffin <aaron@archlinux.org>
# Contributor: Aurelien Foret <orelien@chez.com>
pkgname=irda-utils
pkgver=0.9.18
pkgrel=1
pkgdesc="Utilities for infrared communication between devices"
url="http://irda.sourceforge.net/"
arch=(i686 x86_64)
license=(GPL)
backup=(etc/conf.d/irda)
makedepends=('pciutils')
depends=('glib2')
source=(http://downloads.sourceforge.net/sourceforge/irda/$pkgname-$pkgver.tar.gz
irda irda.conf.d irda.patch)
options=(!emptydirs)
md5sums=('84dc12aa4c3f61fccb8d8919bf4079bb'
'8f7d38590d089041e5246eb0ee3c8291'
'1a9c76b74faa993cc900152361798c50'
'f9e0ba20e1047ee82af17698cb115a7d')
build()
{
cd $startdir/src/$pkgname-$pkgver
patch -Np1 -i $startdir/src/irda.patch
make prefix=/usr RPM_BUILD_ROOT=$startdir/pkg ROOT=$startdir/pkg || return 1
mkdir -p $startdir/pkg/usr/{s,}bin
make ROOT=$startdir/pkg PREFIX=$startdir/pkg install || return 1
install -D -m755 ../irda $startdir/pkg/etc/rc.d/irda
install -D -m644 ../irda.conf.d $startdir/pkg/etc/conf.d/irda
}