aports/community/py-pygit2/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

51 lines
1.3 KiB
Plaintext

# Contributor: Pierre-Gildas MILLON <pgmillon@gmail.com>
# Maintainer:
pkgname=py-pygit2
_pkgname=pygit2
pkgver=0.25.0
pkgrel=2
pkgdesc="Python bindings for libgit2"
url="https://github.com/libgit2/pygit2"
arch="all"
license="GPL-2.0"
_pydepends="py-cffi py-six"
makedepends="$_pydepends python2-dev python3-dev py-setuptools
libgit2-dev libssh2-dev libressl-dev"
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
source="$pkgname-$pkgver.tar.gz::https://github.com/libgit2/$_pkgname/archive/v${pkgver}.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$builddir"
python2 setup.py build || return 1
python3 setup.py build || return 1
}
package() {
mkdir -p "$pkgdir"
}
_py2() {
replaces="$pkgname"
depends="${_pydepends//py-/py2-}"
_py python2
}
_py3() {
depends="${_pydepends//py-/py3-}"
_py python3
}
_py() {
local python="$1"
pkgdesc="$pkgdesc (for $python)"
install_if="$pkgname=$pkgver-r$pkgrel $python"
cd "$builddir"
$python setup.py install --prefix=/usr --root="$subpkgdir"
}
md5sums="0893c90d1c840ccf7dc79835470c1894 py-pygit2-0.25.0.tar.gz"
sha256sums="488dff456921b2763d68b6e8df3101b0c54dc00822548b090b6ee6e05c909416 py-pygit2-0.25.0.tar.gz"
sha512sums="5619b09d3bf7aca6ccab2c29d2b220ec6942ba9190b4d52c058bcc29036ff10e20ed869c6ebc8131dccba07205699c7d567c0db538e54db64bdb058c3a0ca080 py-pygit2-0.25.0.tar.gz"