[arch-commits] Commit in (5 files)

Sven-Hendrik Haase svenstaro at archlinux.org
Wed Apr 8 16:24:42 UTC 2015


    Date: Wednesday, April 8, 2015 @ 18:24:41
  Author: svenstaro
Revision: 130930

Moving mopidy to [community] from AUR

Added:
  mopidy/
  mopidy/repos/
  mopidy/trunk/
  mopidy/trunk/PKGBUILD
  mopidy/trunk/mopidy.install

----------------+
 PKGBUILD       |   62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 mopidy.install |    4 +++
 2 files changed, 66 insertions(+)

Added: mopidy/trunk/PKGBUILD
===================================================================
--- mopidy/trunk/PKGBUILD	                        (rev 0)
+++ mopidy/trunk/PKGBUILD	2015-04-08 16:24:41 UTC (rev 130930)
@@ -0,0 +1,62 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: Alexandre Petitjean <alpetitjean at gmail dot com>
+
+pkgname=mopidy
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="Mopidy is a music server which can play music both from multiple sources, like your local hard drive, radio streams, and from Spotify and SoundCloud."
+arch=('any')
+url="http://www.mopidy.com"
+license=('APACHE')
+depends=('python2'
+         'python2-pykka>=1.1'
+         'python2-setuptools'
+         'gstreamer0.10-python'
+         'gstreamer0.10-base-plugins'
+         'gstreamer0.10-good-plugins'
+         'gstreamer0.10-ugly-plugins'
+         'python2-tornado>=2.3')
+optdepends=('mopidy-spotify: Spotify backend'
+            'mopidy-scrobbler: Last.FM scrobbler'
+            'mopidy-MPRIS: MPRIS frontend'
+            'mopidy-alsamixer: ALSA volume control')
+makedepends=('python2-sphinx')
+backup=('etc/mopidy/mopidy.conf')
+install=$pkgname.install
+source=("https://pypi.python.org/packages/source/M/${_pypiname}/Mopidy-${pkgver}.tar.gz"
+        'mopidy.install')
+md5sums=('c622d6186d524aa8da6d701ec237b4f9'
+         '06da4720ab1cdfebfa6ff6d921bbda9d')
+
+build() {
+  cd "${srcdir}/${_pypiname}-${pkgver}"
+
+  make -C docs SPHINXBUILD=sphinx-build2 man
+  make -C docs SPHINXBUILD=sphinx-build2 html
+}
+
+package() {
+  cd "${srcdir}/${_pypiname}-${pkgver}"
+  python2 setup.py install --root="${pkgdir}/" --optimize=1
+
+  install -dm644 "${pkgdir}/usr/share/man/man1/"
+  gzip -c docs/_build/man/mopidy.1 > "${pkgdir}/usr/share/man/man1/mopidy.1.gz" 
+
+  install -Dm640 "mopidy/config/default.conf" "${pkgdir}/etc/mopidy/mopidy.conf"
+  sed -i "s/debug_file.*/debug_file = /var/log/mopidy/mopidy.log" "${pkgdir}/etc/mopidy/mopidy.conf"
+
+  install -Dm644 "extra/systemd/mopidy.service" "${pkgdir}/usr/lib/systemd/system/mopidy.service"
+  install -Dm644 "extra/desktop/mopidy.desktop" "${pkgdir}/usr/share/applications/mopidy.desktop"
+
+  install -dm755 "${pkgdir}/etc/mopidy/extensions.d"
+
+  install -dm755 -g 46 -o 46 "${pkgdir}/var/cache/mopidy"
+  install -dm755 -g 46 -o 46 "${pkgdir}/var/log/mopidy"
+  install -dm755 -g 46 -o 46 "${pkgdir}/var/lib/mopidy/local"
+  install -dm755 -g 46 -o 46 "${pkgdir}/var/lib/mopidy/media"
+  install -dm755 -g 46 -o 46 "${pkgdir}/var/lib/mopidy/playlists"
+
+  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:

Added: mopidy/trunk/mopidy.install
===================================================================
--- mopidy/trunk/mopidy.install	                        (rev 0)
+++ mopidy/trunk/mopidy.install	2015-04-08 16:24:41 UTC (rev 130930)
@@ -0,0 +1,4 @@
+post_install() {
+	getent group mopidy &>/dev/null || groupadd -r mopidy >/dev/null
+	getent passwd mopidy &>/dev/null || useradd -r -d /var/lib/mopidy -s /bin/false -g mopidy -G audio mopidy >/dev/null
+}



More information about the arch-commits mailing list