1 # Contributor: Paul Nicholson <brenix@gmail.com>
2 # Contributor: Jon Kristian Nilsen <jokr.nilsen@gmail.com>
3 ##########################################################
4 _samsung_patch="n" # patches fsstore backend for compatibility with Samsung TVs
5 ##########################################################
10 pkgdesc="Coherence acts as a DLNA/UPnP MediaServer and MediaRenderer."
11 arch=('i686' 'x86_64')
12 url="https://coherence.beebits.net/"
14 source=(coherence.conf coherence.rc samsung.patch)
15 depends=('python2' 'epsilon' 'axiom' 'twisted-web2' 'python-elementtree' 'python-configobj' 'pylouie' 'libcaca')
16 optdepends=('ampache: for the Ampache Backend'
17 'axiom: for the MediaStore Backend'
18 'elisa: for the Elisa DB Backend and Elisa DLNA Player'
19 'gstreamer0.10-python: for the gstreamer MediaRenderer'
20 'libmtag: for MediaStore Backend ID3 Option A'
21 'pyid3lib: for MediaStore Backend ID3 Option B'
22 'python-gdata: for the Picasa and YouTube Backends'
23 'python-mechanize: for the Flickr Backend'
24 'rhythmbox: for the Rhythmbox DB Backend'
25 'taglib: for MediaStore Backend ID3 Option A or C'
26 'tagpy: for MediaStore Backend ID3 Option C'
27 'tracker: for the TrackerStore Backend'
28 'dvb-daemon: for the DVB Daemon Backend (no package yet)')
29 provides=('coherence-svn')
30 conflicts=('coherence')
31 makedepends=('python2-distribute')
32 backup=('etc/coherence.conf')
35 _svntrunk=https://coherence.beebits.net/svn/trunk/Coherence
41 if [ -d $_svnmod/.svn ]; then
42 (cd $_svnmod && svn up -r $pkgver)
44 svn co --trust-server-cert --non-interactive $_svntrunk --config-dir ./ -r $pkgver $_svnmod
47 msg "SVN checkout done or server timeout"
48 msg "Starting make..."
50 cp -r $_svnmod $_svnmod-build
52 if [ ${_samsung_patch} = "y" ]; then
53 msg "Patching source with Samsung Patch"
54 patch -Np0 < $srcdir/samsung.patch
56 python2 setup.py install --prefix=/usr --root=$startdir/pkg
57 install -D -m755 $srcdir/coherence.conf $pkgdir/etc/coherence.conf
58 install -D -m755 $srcdir/coherence.rc $pkgdir/etc/rc.d/coherence
59 rm -rf $startdir/src/$_svnmod-build
61 md5sums=('9a2fd979a83a4f4ceb6fd3564cdeda86'
62 'a30fe51a098aa9ca4dcee96779a1e6a0'
63 '039d4b84c0f0d023d9e9519fba1b101e')