diff --git a/srcpkgs/mopidy/INSTALL.msg b/srcpkgs/mopidy/INSTALL.msg new file mode 100644 index 0000000000..92ee297ea5 --- /dev/null +++ b/srcpkgs/mopidy/INSTALL.msg @@ -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/ diff --git a/srcpkgs/mopidy/REMOVE b/srcpkgs/mopidy/REMOVE new file mode 100644 index 0000000000..bcac839d07 --- /dev/null +++ b/srcpkgs/mopidy/REMOVE @@ -0,0 +1,5 @@ +case "$ACTION" in +purge) test -d var/lib/mopidy && + rm -rf var/lib/mopidy + ;; +esac diff --git a/srcpkgs/mopidy/files/mopidy.conf b/srcpkgs/mopidy/files/mopidy.conf new file mode 100644 index 0000000000..745a6e9aaa --- /dev/null +++ b/srcpkgs/mopidy/files/mopidy.conf @@ -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 + diff --git a/srcpkgs/mopidy/files/mopidy/log/run b/srcpkgs/mopidy/files/mopidy/log/run new file mode 100755 index 0000000000..bae8e087f0 --- /dev/null +++ b/srcpkgs/mopidy/files/mopidy/log/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec logger -p daemon.info -t mopidy diff --git a/srcpkgs/mopidy/files/mopidy/run b/srcpkgs/mopidy/files/mopidy/run new file mode 100755 index 0000000000..d548067d78 --- /dev/null +++ b/srcpkgs/mopidy/files/mopidy/run @@ -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 diff --git a/srcpkgs/mopidy/template b/srcpkgs/mopidy/template new file mode 100644 index 0000000000..08cd79e5c4 --- /dev/null +++ b/srcpkgs/mopidy/template @@ -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 " +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 +} diff --git a/srcpkgs/python-pykka/template b/srcpkgs/python-pykka/template new file mode 100644 index 0000000000..6e993ebd49 --- /dev/null +++ b/srcpkgs/python-pykka/template @@ -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 " +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" +