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

42 lines
1.4 KiB
Plaintext

# Contributor: Daniel Sabogal <dsabogalcc@gmail.com>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=msgpack-c
_pkgname=msgpack-c-cpp
pkgver=2.0.0
pkgrel=1
pkgdesc="An efficient object serialization library"
url="https://msgpack.org"
arch="all"
license="BSL-1.0"
depends=""
makedepends="cmake"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/msgpack/$pkgname/archive/cpp-$pkgver.tar.gz
cflags.patch"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
mkdir -p "$builddir"/build
cd "$builddir"/build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_C_FLAGS="$CFLAGS -DNDEBUG" \
-DCMAKE_CXX_FLAGS="$CXXFLAGS -DNDEBUG" \
-DCMAKE_VERBOSE_MAKEFILE=TRUE \
|| return 1
make || return 1
}
package() {
cd "$builddir"/build
make DESTDIR="$pkgdir"/ install
}
md5sums="3b88515a48275e2301c5feaccebd8afb msgpack-c-2.0.0.tar.gz
f9068b1906767a23bd78421a83a45134 cflags.patch"
sha256sums="eb20b4bf15f20bad149ec82fffac74f16de2a8a797e321a3f8189d63263a511e msgpack-c-2.0.0.tar.gz
2305f5133bb7d3551f443f50f02cd5cc6ba74932365610f04e42d6137a6481de cflags.patch"
sha512sums="5611f3ac1831dde8c1dc90b09d98f1466fac88659a20014b26a64137c6dfc5d6204c1cb5435f4a93ca00f614aa6d3cf538e815966309b7de195d3e70d44e236f msgpack-c-2.0.0.tar.gz
987e1c50cd9006c080101c5cd0f03ac4c29c990bbf65530325ea5b02f3dd9376f7ba422f90f0c1dfb6d06ab79e6e78cc80be917ec2598b558a2a87d6eba0a1ca cflags.patch"