updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / iguana-ir / PKGBUILD
blob9670c6a1d591dc1575ba7853d2ad2a20866515a1
1 # Maintainer: p2k <Patrick.Schneider@uni-ulm.de>
2 pkgname=iguana-ir
3 pkgver=1.0pre1
4 pkgrel=1
5 pkgdesc="IguanaWorks USB IR Transceiver driver and daemons"
6 arch=('i686' 'x86_64')
7 url="http://iguanaworks.net/"
8 license=('GPL')
9 depends=('python' 'swig')
10 backup=('etc/config.d/iguanaIR')
11 source=(http://iguanaworks.net/downloads/iguanaIR-$pkgver.tar.bz2 iguana-ir.rules iguana-ir.rc)
12 md5sums=('c06fa53b53b5b974f8ecf670214fdaf2'
13          'c52d265af85bfcb738427f0e1993fc9f'
14          '2378c77157025558568ef99dcf11f736')
16 build() {
17   cd "$srcdir/iguanaIR-$pkgver"
19   ./configure --prefix=/usr
20   make || return 1
21   make DESTDIR="$pkgdir" RPM_OS="True" install
22   cd ..
24   # Some cleanup to make it arch-compatible
25   rm -rf "$pkgdir/dev"
26   rm "$pkgdir/etc/udev/rules.d/iguanaIR.rules"
27   rm -rf "$pkgdir/etc/init.d"
28   mkdir -p "$pkgdir/etc/conf.d"
29   mv "$pkgdir/etc/default/iguanaIR" "$pkgdir/etc/conf.d/iguana-ir"
30   rmdir "$pkgdir/etc/default"
31   if [ "$CARCH" == "x86_64" ];then
32     mv "$pkgdir/usr/lib64/libiguanaIR.so.0" "$pkgdir/usr/lib/libiguanaIR.so.0"
33     mv "$pkgdir/usr/lib64/libiguanaIR.so" "$pkgdir/usr/lib/libiguanaIR.so"
34     rmdir "$pkgdir/usr/lib64"
35   fi
37   install --mode 644 iguana-ir.rules "$pkgdir/etc/udev/rules.d/iguana-ir.rules" 
38   install -D iguana-ir.rc "$pkgdir/etc/rc.d/iguana-ir"