# Contributor: Carlo Landmeter # Maintainer: pkgname=mopidy _pkgname=Mopidy pkgver=1.0.0 pkgrel=0 pkgdesc="Mopidy is an extensible music server" url="http://www.mopidy.com/" arch="noarch" license="ASL 2.0" depends="python py-pykka py-tornado gst-plugins-base0.10 gst-plugins-good0.10 gst-plugins-ugly0.10 py-gst0.10 py-setuptools py-libxml2" depends_dev="" makedepends="python-dev" install="" subpackages="" source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz mopidy.conf" _builddir="$srcdir"/$_pkgname-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" python setup.py build || return 1 } package() { cd "$_builddir" python setup.py install --prefix=/usr --root="$pkgdir" || return 1 install -Dm640 "${srcdir}/mopidy.conf" \ "${pkgdir}/etc/mopidy/mopidy.conf" || return 1 install -dm755 "${pkgdir}/etc/mopidy/extensions.d" install -dm755 "${pkgdir}/var/cache/mopidy" install -dm755 "${pkgdir}/var/log/mopidy" install -dm755 "${pkgdir}/var/lib/mopidy/local" install -dm755 "${pkgdir}/var/lib/mopidy/media" install -dm755 "${pkgdir}/var/lib/mopidy/playlists" } md5sums="c622d6186d524aa8da6d701ec237b4f9 Mopidy-1.0.0.tar.gz f198485317cd1f481b9b9a369e122833 mopidy.conf" sha256sums="509ec28f176ceea5dc213c16069763ba5496744bf96e117c292fee38f5007fee Mopidy-1.0.0.tar.gz 3c2a00efb9784ed639bb84f6b07a127573d5a6d08d47983867f2b73ee3398de8 mopidy.conf" sha512sums="0efa1fe0be4bb2c53cd65f1c236964b5b12b3b48cced2acc1e64eed0e154babc1bd2f7fa07b621d7690ddc9dec459a22ae8845aee35c97312a1b15731c02a1f8 Mopidy-1.0.0.tar.gz 593f872d072b32d3da92b8e60ad486c9ca6fa68eae5235e7724f3837d1fa4627694b5ebc8aaacedfba22c701e558e1d60b2f9c97139621a0eead3319446fe300 mopidy.conf"