mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03: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/
36 lines
1.3 KiB
Text
36 lines
1.3 KiB
Text
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=py-qt
|
|
_pkgname=PyQt
|
|
pkgver=4.11.4
|
|
pkgrel=1
|
|
pkgdesc="A set of Python bindings for the Qt toolkit"
|
|
url="http://riverbankcomputing.co.uk/software/pyqt/intro"
|
|
arch="all"
|
|
license="GPL-2.0-or-later"
|
|
depends="py-sip"
|
|
makedepends="python2-dev py-dbus-dev phonon-dev qt-dev py-sip-dev libx11-dev"
|
|
subpackages=""
|
|
install=""
|
|
source="http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-$pkgver/PyQt-x11-gpl-$pkgver.tar.gz"
|
|
|
|
_builddir="${srcdir}/PyQt-x11-gpl-${pkgver}"
|
|
build() {
|
|
cd "$_builddir"
|
|
python2 configure.py \
|
|
--confirm-license \
|
|
-v /usr/share/sip \
|
|
--qsci-api
|
|
# Thanks Gerardo for the rpath fix
|
|
find -name 'Makefile' | xargs sed -i 's|-Wl,-rpath,/usr/lib||g;s|-Wl,-rpath,.* ||g'
|
|
make || return 1
|
|
}
|
|
|
|
package(){
|
|
cd "$_builddir"
|
|
make DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" install || return 1
|
|
}
|
|
|
|
md5sums="2fe8265b2ae2fc593241c2c84d09d481 PyQt-x11-gpl-4.11.4.tar.gz"
|
|
sha256sums="fc1fe77495432ba3b0d74ff5cb164d375a97f5dddb728256330f615a7cdcf407 PyQt-x11-gpl-4.11.4.tar.gz"
|
|
sha512sums="58d0c5e30b0480c1b6ce1a3cc3ef0a1841bb15631830fb937d1f17f5d3d8cbe66a5e2adcfb2c3990fae38db66dd430668bd25413e254e72064a38c48f689f170 PyQt-x11-gpl-4.11.4.tar.gz"
|