summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5fe57df273a92d0d07c6fb631ba4bad639f32439 (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
# Maintainer: Sean Haugh <seanphaugh@gmail.com>
# Contributor: Frederik "Freso" S. Olesen <freso.dk@gmail.com>
# Contributor: Trygve Aaberge <trygveaa+aur at gmail dot com>

pkgname=mopidy-git
_gitname=mopidy
pkgver=2.1.0.r38.g33856830
pkgrel=1
pkgdesc="An extensible music server written in Python"
arch=('any')
url="http://www.mopidy.com"
license=('APACHE')
depends=('python2'
         'python2-pykka'
         'python2-requests'
         'python2-setuptools'
         'python2-tornado'
         'gst-python2'
         'gst-plugins-base'
         'gst-plugins-good'
         'gst-plugins-ugly')
makedepends=('git')
optdepends=('gst-libav: AAC+ and WMA support'
            'mopidy-spotify: Spotify backend'
            'mopidy-scrobbler: Last.FM scrobbler'
            'mopidy-MPRIS: MPRIS frontend')
conflicts=('mopidy')
provides=("mopidy=$pkgver-$pkgrel")
source=('git+https://github.com/mopidy/mopidy.git'
        'mopidy@.service'
        'mopidy-user.service')
md5sums=('SKIP'
         'cdda1474b91b1e35a909e93fc8305599'
         '81de34714bf80d638df34fc3469bd3f5')

pkgver() {
  cd "$_gitname"
  git describe --long | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}

package() {
  cd "$_gitname"
  python2 setup.py install --prefix=/usr --root="$pkgdir/" --optimize=1

  install -Dm644 "$srcdir/mopidy@.service" "$pkgdir/usr/lib/systemd/system/mopidy@.service"
  install -Dm644 "$srcdir/mopidy-user.service" "$pkgdir/usr/lib/systemd/user/mopidy.service"
  install -Dm644 "$srcdir/$_gitname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# vim:set ts=2 sw=2 et: