42 lines
1.4 KiB
Bash
42 lines
1.4 KiB
Bash
# Template file for 'mopidy'
|
|
pkgname=mopidy
|
|
version=2.2.2
|
|
revision=1
|
|
archs=noarch
|
|
wrksrc="Mopidy-${version}"
|
|
build_style=python2-module
|
|
pycompile_module=mopidy
|
|
hostmakedepends="python-setuptools python-Sphinx python-sphinx_rtd_theme python-pykka"
|
|
depends="gst1-python gst-plugins-good1 gst-plugins-ugly1 gst-plugins-bad1
|
|
python-tornado python-pykka python-setuptools python-requests"
|
|
short_desc="Music server for MPD, Spotify, SoundClound and others"
|
|
maintainer="allan <mail@may.mooo.com>"
|
|
license="Apache-2.0"
|
|
homepage="http://www.mopidy.com"
|
|
changelog="https://github.com/mopidy/mopidy/raw/develop/docs/changelog.rst"
|
|
distfiles="${PYPI_SITE}/M/Mopidy/Mopidy-${version}.tar.gz"
|
|
checksum=b41f5ab1e83c5e5f74fdb792c8fd5ba63b7fd227d04df266dba5189bc552a93d
|
|
|
|
conf_files="/etc/mopidy/*.conf"
|
|
system_accounts="mopidy"
|
|
mopidy_homedir="/var/lib/mopidy/"
|
|
mopidy_groups="audio"
|
|
make_dirs="
|
|
/var/lib/mopidy 0755 mopidy mopidy
|
|
/var/cache/mopidy 0755 mopidy mopidy"
|
|
|
|
post_install() {
|
|
vmkdir usr/share/applications/
|
|
vcopy extra/desktop/mopidy.desktop usr/share/applications/
|
|
vbin extra/mopidyctl/mopidyctl
|
|
vman extra/mopidyctl/mopidyctl.8
|
|
make -C docs man
|
|
vman docs/_build/man/mopidy.1
|
|
make -C docs html
|
|
vmkdir usr/share/doc/mopidy/
|
|
cp -r docs/_build/html/* ${DESTDIR}/usr/share/doc/mopidy/
|
|
vinstall ${FILESDIR}/mopidy.conf 644 etc/mopidy/
|
|
vinstall ${FILESDIR}/logging.conf 644 etc/mopidy/
|
|
vsv mopidy
|
|
}
|