summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 76c49f6588b53d465bd97b5bb11835ff44ad5b70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Maintainer: Philipp 'TamCore' B. <philipp [at] tamcore [dot] eu>
# Contributor: Paul Nicholson <brenix@gmail.com>
# Contributor: Nick B <Shirakawasuna at gmail _dot_com>
# Contributor: Alex Anthony <alex.anthony28991@googlemail.com>
# Based on coherence-svn by Jon Kristian Nilsen <jokr.nilsen@gmail.com>

pkgname=coherence
pkgver=0.6.6.2
pkgrel=9
pkgdesc="A DLNA/UPnP MediaServer and MediaRenderer"
arch=('any')
url="http://coherence.beebits.net/"
license=('MIT')
depends=('python2' 'twisted-web2' 'python-elementtree' 'python2-configobj' 'libcaca' 'python2-service-identity' 'python2-gobject2' 'pygtk')
optdepends=('ampache: for the Ampache Backend'
            'gstreamer0.10-python: for the gstreamer MediaRenderer'
            'pyid3lib: for MediaStore Backend ID3 Option B'
            'python2-gdata: for the Picasa and YouTube Backends'
            'python2-mechanize: for the Flickr Backend'
            'rhythmbox: for the Rhythmbox DB Backend'
            'taglib: for MediaStore Backend ID3 Option A or C'
            'python2-tagpy: for MediaStore Backend ID3 Option C'
            'tracker: for the TrackerStore Backend')
makedepends=('python2-distribute')
conflicts=('coherence-svn')
source=(http://coherence.beebits.net/download/Coherence-${pkgver}.tar.gz
       coherence.conf
       coherence.service
       coherence_pidfile.patch
       samsung.patch
       twisted_detection.patch
       org.Coherence.service)
backup=('etc/coherence.conf')
md5sums=('d7a1b4abf6831c61e37a3b9e2bdc560a'
         '9a2fd979a83a4f4ceb6fd3564cdeda86'
         'c43416ac2fb8a8195917a7e23b806c7d'
         'b12f5f89fe34e48267c6c6e7cab5a4f4'
         '039d4b84c0f0d023d9e9519fba1b101e'
         '7ad9e42ab1e6dc8efa850d4b348e3052'
         'ed11837f08988600e5aac0caf8e5221a')

prepare() {
  cd "Coherence-$pkgver"

  patch -Np0 -i "$srcdir/samsung.patch"
  patch -p1 -i "$srcdir/coherence_pidfile.patch"
  patch -Np0 -i "$srcdir/twisted_detection.patch"
}

package() {
  cd "Coherence-$pkgver"

  python2 setup.py install --prefix=/usr --root="$pkgdir"

  install -Dm644 "$srcdir/coherence.conf" "$pkgdir/etc/coherence.conf"
  install -Dm644 "$srcdir/coherence.service" "$pkgdir/usr/lib/systemd/system/coherence.service"
  install -Dm644 "$srcdir/org.Coherence.service" "$pkgdir/usr/share/dbus-1/services/org.Coherence.service"
  install -Dm644 "$srcdir/Coherence-$pkgver/LICENCE" "$pkgdir/usr/share/licenses/coherence/LICENSE"
}