aports/community/ympd/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

56 lines
1.9 KiB
Plaintext

# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ympd
pkgver=1.3.0
pkgrel=5
pkgdesc="A standalone MPD Web GUI"
url="https://www.ympd.org/"
arch="all"
license="GPL-2.0"
depends=""
depends_dev=""
makedepends="$depends_dev cmake libmpdclient-dev libressl-dev"
install="$pkgname.pre-install"
subpackages="$pkgname-doc"
source="ympd-${pkgver}.tar.gz::https://github.com/notandy/ympd/archive/v$pkgver.tar.gz
$pkgname.initd
$pkgname.confd"
_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
mkdir build || return 1
}
build() {
cd "$_builddir"/build
cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/usr
make || return 1
}
package() {
cd "$_builddir"/build
make DESTDIR="$pkgdir/" install || return 1
install -D -m755 "$srcdir"/$pkgname.initd \
"$pkgdir"/etc/init.d/$pkgname || return 1
install -D -m644 "$srcdir"/$pkgname.confd \
"$pkgdir"/etc/conf.d/$pkgname || return 1
}
md5sums="90206af29c42af66fc900054816aee24 ympd-1.3.0.tar.gz
d61ddfc43c152dc019d96723efa3e52f ympd.initd
eeb049caa36608e7b059ab258c228b0e ympd.confd"
sha256sums="d9f68920cd93d1cfa971e1d7b9162a2b1724909bc9753c1338cecb3688d234d5 ympd-1.3.0.tar.gz
99fe804df79d9ce1f804ef05fa5c75b24c05c566313297e2dd65f9f8c06c1204 ympd.initd
045067b2a6ffd38cefc6f4a813d8095d45d349bf6bca5e45b8eaadaf1f84bc24 ympd.confd"
sha512sums="7e2bd4124b0e7692e2528e9fc50955d1b357ba042d8c97941160ad31ee0c89bc53b349195b45d27ce77aaa954bc01aceba1a30cdb89d9f58644a0b4934498a16 ympd-1.3.0.tar.gz
38ce9d2d168670474a8d8931fde592e7f45ade486fe8ce2fbd7689fa2a121eefd7cbc962be3607d71f090897733ec4e41d67f4703481525bc59fc56b99833bac ympd.initd
3e6e83877baf84762a518cc079992dd94614d59faa26600d4e34faa09285f0f0a7de8f4408488b4d017bf2ffe90f03ac1f0c3670bb95e99a089b920a3ff8df63 ympd.confd"