pycairo: Update to 1.23.0
* spdx license * update compileall call, newer python can create optimized pyc
This commit is contained in:
@@ -3,13 +3,13 @@
|
||||
_realname=pycairo
|
||||
pkgbase=mingw-w64-${_realname}
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-python-cairo")
|
||||
pkgver=1.22.0
|
||||
pkgver=1.23.0
|
||||
pkgrel=1
|
||||
pkgdesc="Python bindings for the cairo graphics library (mingw-w64)"
|
||||
url="https://pycairo.readthedocs.io"
|
||||
arch=('any')
|
||||
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
|
||||
license=('LGPL' 'MPL')
|
||||
license=('spdx:LGPL-2.1-only OR MPL-1.1')
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-cairo"
|
||||
"${MINGW_PACKAGE_PREFIX}-python")
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-cc"
|
||||
@@ -21,7 +21,7 @@ conflicts=("${MINGW_PACKAGE_PREFIX}-python3-cairo")
|
||||
replaces=("${MINGW_PACKAGE_PREFIX}-python3-cairo")
|
||||
checkdepends=("${MINGW_PACKAGE_PREFIX}-python-pytest")
|
||||
source=(https://github.com/pygobject/${_realname}/releases/download/v${pkgver}/${_realname}-${pkgver}.tar.gz)
|
||||
sha256sums=('b34517abdf619d4c7f0274f012b398d9b03bab7adc3efd2912bf36be3f911f3f')
|
||||
sha256sums=('9b61ac818723adc04367301317eb2e814a83522f07bbd1f409af0dada463c44c')
|
||||
|
||||
build() {
|
||||
mkdir -p build-${MSYSTEM} && cd build-${MSYSTEM}
|
||||
@@ -49,9 +49,9 @@ package() {
|
||||
DESTDIR="${pkgdir}" meson install
|
||||
shopt -s globstar
|
||||
rm ${pkgdir}${MINGW_PREFIX}/**/*.dll.a
|
||||
MSYS2_ARG_CONV_EXCL="-d" \
|
||||
python -m compileall -q -d"${MINGW_PREFIX}" "${pkgdir}${MINGW_PREFIX}" && \
|
||||
python -O -m compileall -q -d"${MINGW_PREFIX}" "${pkgdir}${MINGW_PREFIX}"
|
||||
|
||||
MSYS2_ARG_CONV_EXCL="-p" python -m compileall \
|
||||
-o 0 -o 1 -q -s"${pkgdir}" -p"/" "${pkgdir}${MINGW_PREFIX}/lib/python"*
|
||||
|
||||
install -Dm644 "${srcdir}/${_realname}-${pkgver}/"COPYING* -t "${pkgdir}${MINGW_PREFIX}/share/licenses/python-cairo"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user