APKBUILD 1.57 KB
Newer Older
1
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
Carlo Landmeter's avatar
Carlo Landmeter committed
2
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
3
# Maintainer: Marvin Steadfast <marvin@xsteadfastx.org>
Carlo Landmeter's avatar
Carlo Landmeter committed
4
pkgname=mopidy
5
_pkgname=Mopidy
6
pkgver=2.1.0
7
pkgrel=1
Carlo Landmeter's avatar
Carlo Landmeter committed
8 9 10
pkgdesc="Mopidy is an extensible music server"
url="http://www.mopidy.com/"
arch="noarch"
11
license="ASL 2.0"
12 13
depends="python py-pykka py-tornado gst-plugins-base gst-plugins-good
	gst-plugins-ugly py-gst py-setuptools py-libxml2 py-requests
14 15
	py-six
	"
Carlo Landmeter's avatar
Carlo Landmeter committed
16
depends_dev=""
17
makedepends="python-dev"
Carlo Landmeter's avatar
Carlo Landmeter committed
18 19
install=""
subpackages=""
20
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
21 22
	mopidy.conf
	"
Carlo Landmeter's avatar
Carlo Landmeter committed
23

24
_builddir="$srcdir"/$_pkgname-$pkgver
Carlo Landmeter's avatar
Carlo Landmeter committed
25
prepare() {
26
	default_prepare
Carlo Landmeter's avatar
Carlo Landmeter committed
27 28 29 30
}

build() {
	cd "$_builddir"
31
	python setup.py build
Carlo Landmeter's avatar
Carlo Landmeter committed
32 33 34 35
}

package() {
	cd "$_builddir"
36 37
	python setup.py install --prefix=/usr --root="$pkgdir"
	install -Dm640 "${srcdir}/mopidy.conf" "${pkgdir}/etc/mopidy/mopidy.conf"
Carlo Landmeter's avatar
Carlo Landmeter committed
38 39 40 41 42 43 44 45
	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"
}

46 47 48 49 50 51
check() {
	cd "$_builddir"
	python -m mopidy --help > /dev/null
}

sha512sums="14422ec706be70b3ce64e48be2c07677ac19fbb3a66f7ee4c9ad84ce47ffd8bf8a8b43edb7655f8437c50ac1366026ab96594f6598e033db8ffe094dd471d985  Mopidy-2.1.0.tar.gz
Carlo Landmeter's avatar
Carlo Landmeter committed
52
593f872d072b32d3da92b8e60ad486c9ca6fa68eae5235e7724f3837d1fa4627694b5ebc8aaacedfba22c701e558e1d60b2f9c97139621a0eead3319446fe300  mopidy.conf"