# Description: Libraries and utilities used for parsing XML files # URL: # Maintainer: Emmett1, emmett1 dot 2miligrams at gmail dot com # Depends on: name=libxml2 version=2.9.12 release=1 source=(http://xmlsoft.org/sources/$name-$version.tar.gz) build() { cd $name-$version # fix a problem generating the Python3 module with Python-3.9.0 and later sed -i '/if Py/{s/Py/(Py/;s/)/))/}' python/{types.c,libxml.c} # ensure that the Python module can be built by Python-3.9.0 sed -i '/_PyVerify_fd/,+1d' python/types.c ./configure --prefix=/usr \ --disable-static \ --with-history \ --with-python=/usr/bin/python3 make make DESTDIR=$PKG install }