updated on Sat Jan 21 04:00:54 UTC 2012
[aur-mirror.git] / coherence-svn / PKGBUILD
blob2e59499e6b00659dd4e787e873291d33bdb7aa5e
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 ##########################################################
7 pkgname=coherence-svn
8 pkgver=1650
9 pkgrel=1
10 pkgdesc="Coherence acts as a DLNA/UPnP MediaServer and MediaRenderer."
11 arch=('i686' 'x86_64')
12 url="https://coherence.beebits.net/"
13 license=('MIT')
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')
33 install=
35 _svntrunk=https://coherence.beebits.net/svn/trunk/Coherence
36 _svnmod=coherence-svn
38 build() {
39   cd $startdir/src
41   if [ -d $_svnmod/.svn ]; then
42     (cd $_svnmod && svn up -r $pkgver)
43   else
44     svn co --trust-server-cert --non-interactive $_svntrunk --config-dir ./ -r $pkgver $_svnmod
45   fi
47   msg "SVN checkout done or server timeout"
48   msg "Starting make..."
50   cp -r $_svnmod $_svnmod-build
51   cd $_svnmod-build
52   if [ ${_samsung_patch} = "y" ]; then
53     msg "Patching source with Samsung Patch"
54     patch -Np0 < $srcdir/samsung.patch
55   fi
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')