# Maintainer: Sean Haugh # Contributor: Frederik "Freso" S. Olesen # Contributor: Trygve Aaberge 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: