1 # Maintainer: p2k <Patrick.Schneider@uni-ulm.de>
5 pkgdesc="IguanaWorks USB IR Transceiver driver and daemons"
7 url="http://iguanaworks.net/"
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')
17 cd "$srcdir/iguanaIR-$pkgver"
19 ./configure --prefix=/usr
21 make DESTDIR="$pkgdir" RPM_OS="True" install
24 # Some cleanup to make it arch-compatible
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"
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"