Merge pull request #717 from allan/m

mopidy
This commit is contained in:
Juan RP 2014-12-12 18:43:20 +01:00
commit b1e0cd0fa0
7 changed files with 109 additions and 0 deletions

View file

@ -0,0 +1,4 @@
Edit /etc/mopidy.conf and let 'media_dir' point to your
music directory. Install additional plugins via python-pip.
To get a list of plugins use »pip search Mopidy«. There is no
man page available... check https://docs.mopidy.com/en/v0.19.4/

5
srcpkgs/mopidy/REMOVE Normal file
View file

@ -0,0 +1,5 @@
case "$ACTION" in
purge) test -d var/lib/mopidy &&
rm -rf var/lib/mopidy
;;
esac

View file

@ -0,0 +1,43 @@
[logging]
color = false
console_format = %(levelname)-8s %(message)s
config_file =
[audio]
mixer = software
mixer_volume =
output = autoaudiosink
visualizer =
[proxy]
#scheme =
#hostname =
#port =
#username =
#password =
[local]
enabled = true
library = json
media_dir =
data_dir = /var/lib/mopidy/
playlists_dir = /var/lib/mopidy/playlists
scan_timeout = 1000
scan_flush_threshold = 1000
excluded_file_extensions =
.directory
.html
.jpeg
.jpg
.log
.nfo
.png
.txt
[mpd]
enabled = true
hostname = 127.0.0.1
port = 6600
password =
max_connections = 20

View file

@ -0,0 +1,2 @@
#!/bin/sh
exec logger -p daemon.info -t mopidy

View file

@ -0,0 +1,6 @@
#!/bin/sh
# scan local lib on first run
test -f /var/lib/mopidy/library.json.gz \
|| chpst -umopidy mopidy --config /etc/mopidy.conf local scan
exec chpst -umopidy mopidy --config /etc/mopidy.conf

30
srcpkgs/mopidy/template Normal file
View file

@ -0,0 +1,30 @@
# Template file for 'mopidy'
pkgname=mopidy
version=0.19.4
revision=1
build_style=python-module
short_desc="An extensible music server in python"
maintainer="allan <mail@may.mooo.com>"
license="Apache-2.0"
homepage="http://www.mopidy.com"
distfiles="${PYPI_SITE}/M/Mopidy/Mopidy-${version}.tar.gz"
checksum="887af8619182770867d9cf3d3ce9b8cacc7eb62763cfa7d3edfacb846d68a52b"
noarch=yes
python_versions=2.7
pycompile_module=mopidy
makedepends="python-devel"
hostmakedepends="python-devel python-setuptools python-pykka"
depends="gst-python gst-plugins-good1 gst-plugins-ugly1 gst-plugins-bad1 python-tornado python-pykka python-setuptools"
wrksrc="Mopidy-$version"
conf_files="/etc/mopidy.conf"
system_accounts="mopidy"
mopidy_homedir="/var/lib/mopidy/"
mopidy_groups="audio"
make_dirs="/var/lib/mopidy 0755 mopidy mopidy"
post_install() {
vconf $FILESDIR/mopidy.conf
vsv mopidy
}

View file

@ -0,0 +1,19 @@
# Template file for 'python-pykka'
pkgname=python-pykka
version=1.2.0
revision=1
build_style="python-module"
short_desc="A python implementation of the actor model"
maintainer="allan <mail@may.mooo.com>"
homepage="https://pypi.python.org/pypi/Pykka"
license="Apache-2.0"
distfiles="${PYPI_SITE}/P/Pykka/Pykka-${version}.tar.gz"
checksum="01cfbfc5a9a32c01ee68303614269b5b1c6e3d698270c92be7488f8c1edb5885"
noarch=yes
hostmakedepends="python-setuptools"
makedepends="python-setuptools"
wrksrc="Pykka-${version}"
python_versions="2.7"
pycompile_module="pykka"