1 # Contributor: Nicolas QuiƩnot <niQo @ aur>
7 pkgdesc="Enables streaming of videos from iThing to XBMC. (Airplay)"
10 url="http://code.google.com/p/play2wifi/"
11 depends=('python2' 'avahi' 'twisted' 'xbmc-eventclient-xbmc-send')
13 backup=('play2wifi.cfg')
14 install=play2wifi.install
15 source=('http://play2wifi.googlecode.com/files/Play2wifi-0.1.tar.bz2')
16 sha1sums=('29772b9d2e06f1913892ce114770025890251d21')
19 cd ${srcdir}/${_origpkgname}/src
20 sed -i -e 's|#!/usr/bin/python$|#!/usr/bin/python2|' play2wifi.py
21 sed -i -e 's|play2wifi.cfg|/etc/play2wifi.cfg|' play2wifi.py
22 sed -i -e 's|xbmcport: 9878|xbmcport: 8080|' play2wifi.cfg
26 mkdir -p ${pkgdir}/etc/avahi/services/
27 mkdir -p ${pkgdir}/usr/bin
29 install -Dm644 ${srcdir}/${_origpkgname}/src/play2wifi.service ${pkgdir}/etc/avahi/services/
30 install -Dm755 ${srcdir}/${_origpkgname}/src/play2wifi.py ${pkgdir}/usr/bin
31 install -Dm644 ${srcdir}/${_origpkgname}/src/play2wifi.cfg ${pkgdir}/etc/