void-packages/srcpkgs/mopidy/template
2021-11-14 12:03:14 +01:00

43 lines
1.5 KiB
Bash

# Template file for 'mopidy'
pkgname=mopidy
version=3.2.0
revision=1
wrksrc="Mopidy-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools python3-Sphinx python3-sphinx_rtd_theme
python3-pykka"
depends="gst1-python3 gst-plugins-good1 gst-plugins-ugly1 gst-plugins-bad1
python3-dbus python3-gobject python3-tornado python3-pykka python3-setuptools
python3-requests"
checkdepends="${depends} python3-pytest python3-responses"
short_desc="Music server for MPD, Spotify, SoundClound and others"
maintainer="allan <mail@may.mooo.com>"
license="Apache-2.0"
homepage="https://www.mopidy.com"
changelog="https://github.com/mopidy/mopidy/raw/develop/docs/changelog.rst"
distfiles="${PYPI_SITE}/M/Mopidy/Mopidy-${version}.tar.gz"
checksum=8e9d1aa91a3c40ac43945be58249a7ce27eb955bce9c9e4d07592e809ac37004
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
python3 setup.py build
python3 setup.py build_sphinx -b man
python3 setup.py build_sphinx -b html
vman build/sphinx/man/mopidy.1
vmkdir usr/share/doc/mopidy/
cp -r build/sphinx/html/* ${DESTDIR}/usr/share/doc/mopidy/
vinstall ${FILESDIR}/mopidy.conf 644 etc/mopidy/
vinstall ${FILESDIR}/logging.conf 644 etc/mopidy/
vsv mopidy
}