libxml2: Drop Python 2 bindings

This commit is contained in:
Christoph Reiter
2019-12-27 20:48:24 +01:00
parent f069644bb0
commit f3e1a278d1

View File

@@ -6,7 +6,7 @@ _realname=libxml2
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=2.9.10
pkgrel=1
pkgrel=2
arch=('any')
pkgdesc="XML parsing library, version 2 (mingw-w64)"
depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs"
@@ -15,7 +15,6 @@ depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs"
"${MINGW_PACKAGE_PREFIX}-zlib")
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc"
"${MINGW_PACKAGE_PREFIX}-pkg-config"
"${MINGW_PACKAGE_PREFIX}-python2"
"${MINGW_PACKAGE_PREFIX}-python3")
options=('strip' 'staticlibs')
license=(MIT)
@@ -118,30 +117,22 @@ build() {
make
# Shared build
_setup_shared 2
make
# A little trick from Cygwin because we only want the Python3 bindings
_setup_shared 3
make -C python top_builddir=${srcdir}/build-shared-${CARCH}-py2
make
}
check() {
cd ${srcdir}/build-shared-${CARCH}-py2
cd ${srcdir}/build-shared-${CARCH}-py3
cp -r ../xmlconf .
make check
}
package() {
# First install shared
cd ${srcdir}/build-shared-${CARCH}-py2
cd ${srcdir}/build-shared-${CARCH}-py3
make install DESTDIR="${pkgdir}"
# Then install python bindings for Python3
make -C "${srcdir}/build-shared-${CARCH}-py3/python" DESTDIR="$pkgdir" install
# then manually install static
cd ${srcdir}/build-static-${CARCH}