pycairo: Update to 1.24.0
and some cleanup
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
_realname=pycairo
|
||||
pkgbase=mingw-w64-${_realname}
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-python-cairo")
|
||||
pkgver=1.23.0
|
||||
pkgver=1.24.0
|
||||
pkgrel=1
|
||||
pkgdesc="Python bindings for the cairo graphics library (mingw-w64)"
|
||||
url="https://pycairo.readthedocs.io"
|
||||
@@ -14,37 +14,37 @@ depends=("${MINGW_PACKAGE_PREFIX}-cairo"
|
||||
"${MINGW_PACKAGE_PREFIX}-python")
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-cc"
|
||||
"${MINGW_PACKAGE_PREFIX}-meson"
|
||||
"${MINGW_PACKAGE_PREFIX}-pkg-config"
|
||||
"${MINGW_PACKAGE_PREFIX}-pkgconf"
|
||||
"${MINGW_PACKAGE_PREFIX}-ninja")
|
||||
provides=("${MINGW_PACKAGE_PREFIX}-python3-cairo")
|
||||
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=('9b61ac818723adc04367301317eb2e814a83522f07bbd1f409af0dada463c44c')
|
||||
sha256sums=('1444d52f1bb4cc79a4a0c0fe2ccec4bd78ff885ab01ebe1c0f637d8392bcafb6')
|
||||
|
||||
build() {
|
||||
mkdir -p build-${MSYSTEM} && cd build-${MSYSTEM}
|
||||
mkdir -p "build-${MSYSTEM}" && cd "build-${MSYSTEM}"
|
||||
|
||||
MSYS2_ARG_CONV_EXCL="--prefix=" \
|
||||
meson \
|
||||
meson setup \
|
||||
--prefix="${MINGW_PREFIX}" \
|
||||
--wrap-mode=nodownload \
|
||||
--auto-features=enabled \
|
||||
--buildtype=plain \
|
||||
../${_realname}-${pkgver}
|
||||
../"${_realname}-${pkgver}"
|
||||
|
||||
meson compile
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "${srcdir}/build-${MSYSTEM}"
|
||||
cd "build-${MSYSTEM}"
|
||||
|
||||
meson test
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/build-${MSYSTEM}"
|
||||
cd "build-${MSYSTEM}"
|
||||
|
||||
DESTDIR="${pkgdir}" meson install
|
||||
shopt -s globstar
|
||||
|
||||
Reference in New Issue
Block a user