[arch-commits] Commit in mopidy/repos (3 files)
Sven-Hendrik Haase
svenstaro at archlinux.org
Wed Apr 8 16:30:39 UTC 2015
Date: Wednesday, April 8, 2015 @ 18:30:39
Author: svenstaro
Revision: 130932
archrelease: copy trunk to community-any
Added:
mopidy/repos/community-any/
mopidy/repos/community-any/PKGBUILD
(from rev 130931, mopidy/trunk/PKGBUILD)
mopidy/repos/community-any/mopidy.install
(from rev 130931, mopidy/trunk/mopidy.install)
----------------+
PKGBUILD | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
mopidy.install | 4 +++
2 files changed, 66 insertions(+)
Copied: mopidy/repos/community-any/PKGBUILD (from rev 130931, mopidy/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2015-04-08 16:30:39 UTC (rev 130932)
@@ -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://github.com/mopidy/mopidy/archive/v${pkgver}.tar.gz"
+ 'mopidy.install')
+md5sums=('f2c01fb8fcd1c0bd509344a9f2f72fc1'
+ 'bd513aa0e4e83c117340a55f53215cf2')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ make -C docs SPHINXBUILD=sphinx-build2 man
+ make -C docs SPHINXBUILD=sphinx-build2 html
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${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:
Copied: mopidy/repos/community-any/mopidy.install (from rev 130931, mopidy/trunk/mopidy.install)
===================================================================
--- community-any/mopidy.install (rev 0)
+++ community-any/mopidy.install 2015-04-08 16:30:39 UTC (rev 130932)
@@ -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