aports/testing/mopidy/APKBUILD
Jakub Jirutka 63f5e7d295 [various]: unify names of licenses according to SPDX
This commit updates $license variable in all APKBUILDs to comply with
short names specified by SPDX version 3.0 [1] where possible. It was
done using find-and-replace method on substrings inside $license
variables.

Only license names were updated, not "expressions" specifying relation
between the licenses (e.g. "X and Y", "X or Y", "X and (Y or Z)") or
exceptions (e.g. "X with exceptions").

Many licenses have a version or multiple variants, e.g. MPL-2.0,
BSD-2-Clause, BSD-3-Clause. However, $license in many aports do not
contain license version or variant. Since there's no way how to infer
this information just from abuild, it were left without the variant
suffix or version, i.e. non SPDX compliant.

GNU licenses (AGPL, GFDL, GPL, LGPL) are especially complicated. They
exist in two variants: -only (formerly e.g. GPL-2.0) and -or-later
(formerly e.g. GPL-2.0+). We did not systematically noted distinguish
between these variants, so GPL-2.0, GPL2, GPLv2 etc. may mean
GPL-2.0-only or GPL-2.0-or-later. Thus GNU licenses without "+" (e.g.
GPL2+) were left without the variant suffix, i.e. non SPDX compliant.

Note: This commit just fixes format of the license names, no
verification has been done if the specified license information is
actually correct!

[1]: https://spdx.org/licenses/
2017-12-30 21:05:50 +01:00

53 lines
1.6 KiB
Plaintext

# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Marvin Steadfast <marvin@xsteadfastx.org>
pkgname=mopidy
_pkgname=Mopidy
pkgver=2.1.0
pkgrel=1
pkgdesc="Mopidy is an extensible music server"
url="http://www.mopidy.com/"
arch="noarch"
license="Apache-2.0"
depends="python py-pykka py-tornado gst-plugins-base gst-plugins-good
gst-plugins-ugly py-gst py-setuptools py-libxml2 py-requests
py-six
"
depends_dev=""
makedepends="python-dev"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
mopidy.conf
"
_builddir="$srcdir"/$_pkgname-$pkgver
prepare() {
default_prepare
}
build() {
cd "$_builddir"
python setup.py build
}
package() {
cd "$_builddir"
python setup.py install --prefix=/usr --root="$pkgdir"
install -Dm640 "${srcdir}/mopidy.conf" "${pkgdir}/etc/mopidy/mopidy.conf"
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"
}
check() {
cd "$_builddir"
python -m mopidy --help > /dev/null
}
sha512sums="14422ec706be70b3ce64e48be2c07677ac19fbb3a66f7ee4c9ad84ce47ffd8bf8a8b43edb7655f8437c50ac1366026ab96594f6598e033db8ffe094dd471d985 Mopidy-2.1.0.tar.gz
593f872d072b32d3da92b8e60ad486c9ca6fa68eae5235e7724f3837d1fa4627694b5ebc8aaacedfba22c701e558e1d60b2f9c97139621a0eead3319446fe300 mopidy.conf"