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

39 lines
1.2 KiB
Plaintext

# Contributor: Thomas Boerger <thomas@webhippie.de>
# Maintainer: Thomas Boerger <thomas@webhippie.de>
pkgname=cloudfoundry-cli
pkgver=6.18.0
pkgrel=0
pkgdesc="A CLI for Cloud Foundry written in Go"
url="https://github.com/cloudfoundry/cli"
arch="all"
license="Apache-2.0"
depends=""
depends_dev=""
makedepends="$depends_dev go bash"
install=""
subpackages=""
source="${pkgname}-${pkgver}.tar.gz::https://github.com/cloudfoundry/cli/archive/v$pkgver.tar.gz"
builddir="${srcdir}/cli-${pkgver}"
_godir="${srcdir}/go"
_gourl="github.com/cloudfoundry/cli"
build() {
mkdir -p ${_godir}/bin ${_godir}/src/github.com/cloudfoundry
ln -sf ${builddir} ${_godir}/src/github.com/cloudfoundry/cli
export GOPATH="${_godir}"
go install ${_gourl}/main || return 1
}
package() {
cd "$_godir"/bin
install -Dm755 main \
"${pkgdir}/usr/bin/cf" || return 1
}
md5sums="78a6e60400c5478cce02f18e8933faa4 cloudfoundry-cli-6.18.0.tar.gz"
sha256sums="499fdd87c595d5da4f8f9d1208633247fcc75040d37fbd9a75457e3d309722f8 cloudfoundry-cli-6.18.0.tar.gz"
sha512sums="d514fc7a76602744282ddeb39e46b7fce3817526046774a42e0aaee28d21bf689fc17a53515044cc10e1a7a2a286ab1cf22072d1d251080926683f2d5a350b56 cloudfoundry-cli-6.18.0.tar.gz"