Files
MINGW-packages/mingw-w64-libxml2/libxml2-i686.install
Christoph Reiter 8fca4f59ca lbxml2: use full path to mkdir in .install files
/bin doesn't exist in chroot which is used with "pacman --root"

See https://github.com/msys2/MSYS2-packages/issues/1998
2020-06-07 23:09:04 +02:00

18 lines
471 B
Plaintext

PYTHON_SITELIB=/mingw32/lib/python2.7/site-packages
post_install() {
if test ! -f mingw32/etc/xml/catalog; then
usr/bin/mkdir -p mingw32/etc/xml
mingw32/bin/xmlcatalog --noout --create mingw32/etc/xml/catalog
fi
if test -f mingw32/bin/python2.exe; then
mingw32/bin/python2.exe -m compileall -q -f ${PYTHON_SITELIB}/*libxml2.py
mingw32/bin/python2.exe -OO -m compileall -q -f ${PYTHON_SITELIB}/*libxml2.py
fi
}
post_upgrade() {
post_install
}