mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-30 10:51:39 +02:00
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/
58 lines
1.3 KiB
Plaintext
58 lines
1.3 KiB
Plaintext
# Contributor: Ivan Tham <pickfire@riseup.net>
|
|
# Maintainer: Ivan Tham <pickfire@riseup.net>
|
|
pkgname=py-xlib
|
|
_pkgname=python-xlib
|
|
pkgver=0.20
|
|
pkgrel=1
|
|
pkgdesc="A fully functional X client library for Python programs"
|
|
url="https://github.com/python-xlib/python-xlib"
|
|
arch="noarch"
|
|
license="LGPL-2.0"
|
|
depends="py-six"
|
|
checkdepends="xvfb"
|
|
makedepends="python2-dev python3-dev py-setuptools"
|
|
subpackages="${pkgname/py-/py3-}:_py3 ${pkgname/py-/py2-}:_py2"
|
|
source="https://github.com/$_pkgname/$_pkgname/releases/download/$pkgver/$_pkgname-$pkgver.tar.bz2"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
python2 setup.py build
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"
|
|
Xvfb :1 &
|
|
export DISPLAY=:1
|
|
python2 setup.py test
|
|
python3 setup.py test
|
|
}
|
|
|
|
package() {
|
|
mkdir -p "$pkgdir"
|
|
}
|
|
|
|
_py2() {
|
|
replaces="$pkgname"
|
|
depends="${depends//py-/py2-}"
|
|
_py python2
|
|
}
|
|
|
|
_py3() {
|
|
depends="${depends//py-/py3-}"
|
|
_py python3
|
|
}
|
|
|
|
_py() {
|
|
local python="$1"
|
|
pkgdesc="$pkgdesc (for $python)"
|
|
depends="$depends $python"
|
|
install_if="$pkgname=$pkgver-r$pkgrel $python"
|
|
|
|
cd "$builddir"
|
|
$python setup.py install --prefix=/usr --root="$subpkgdir"
|
|
}
|
|
|
|
sha512sums="7717832a8da13cde236143f4fc1b849b02e306b59cad6146db0a2fc6d19e9a9f60604110cceadd9a9041e013dcc4d67dcb1c2629e0ca44f9c69ed91d2a1c5adf python-xlib-0.20.tar.bz2"
|