diff options
-rw-r--r-- | .SRCINFO | 10 | ||||
-rw-r--r-- | PKGBUILD | 64 |
2 files changed, 36 insertions, 38 deletions
@@ -1,15 +1,15 @@ pkgbase = mopidy-git pkgdesc = An extensible music server written in Python - pkgver = 2.1.0.r38.g33856830 + pkgver = 2.1.0.r55.g9e31e76a pkgrel = 1 - url = http://www.mopidy.com + url = https://github.com/mopidy/mopidy arch = any license = APACHE makedepends = git + makedepends = python2-setuptools depends = python2 depends = python2-pykka depends = python2-requests - depends = python2-setuptools depends = python2-tornado depends = gst-python2 depends = gst-plugins-base @@ -19,9 +19,9 @@ pkgbase = mopidy-git optdepends = mopidy-spotify: Spotify backend optdepends = mopidy-scrobbler: Last.FM scrobbler optdepends = mopidy-MPRIS: MPRIS frontend - provides = mopidy=2.1.0.r38.g33856830-1 + provides = mopidy=2.1.0.r55.g9e31e76a-1 conflicts = mopidy - source = git+https://github.com/mopidy/mopidy.git + source = git+https://github.com/mopidy/mopidy source = mopidy@.service source = mopidy-user.service md5sums = SKIP @@ -1,50 +1,48 @@ # 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 +_owner=mopidy pkgname=mopidy-git -_gitname=mopidy -pkgver=2.1.0.r38.g33856830 +pkgver=2.1.0.r55.g9e31e76a pkgrel=1 -pkgdesc="An extensible music server written in Python" +pkgdesc='An extensible music server written in Python' arch=('any') -url="http://www.mopidy.com" +url="https://github.com/$_owner/$_pkgname" 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') + 'python2-pykka' + 'python2-requests' + 'python2-tornado' + 'gst-python2' + 'gst-plugins-base' + 'gst-plugins-good' + 'gst-plugins-ugly') +makedepends=('git' + 'python2-setuptools') optdepends=('gst-libav: AAC+ and WMA support' - 'mopidy-spotify: Spotify backend' - 'mopidy-scrobbler: Last.FM scrobbler' - 'mopidy-MPRIS: MPRIS frontend') + 'mopidy-spotify: Spotify backend' + 'mopidy-scrobbler: Last.FM scrobbler' + 'mopidy-MPRIS: MPRIS frontend') +provides=("$_pkgname=$pkgver-$pkgrel") conflicts=('mopidy') -provides=("mopidy=$pkgver-$pkgrel") -source=('git+https://github.com/mopidy/mopidy.git' - 'mopidy@.service' - 'mopidy-user.service') +source=("git+https://github.com/$_owner/$_pkgname" + 'mopidy@.service' + 'mopidy-user.service') md5sums=('SKIP' - 'cdda1474b91b1e35a909e93fc8305599' - '81de34714bf80d638df34fc3469bd3f5') + 'cdda1474b91b1e35a909e93fc8305599' + '81de34714bf80d638df34fc3469bd3f5') pkgver() { - cd "$_gitname" - git describe --long | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g' + cd "$_pkgname" + 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" + cd "$_pkgname" + 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 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } - -# vim:set ts=2 sw=2 et: +# vim:set ts=2 sw=2 noet: |