compat-32/libxml2-python-32/Pkgfile
2017-09-08 20:00:54 +10:00

36 lines
936 B
Plaintext

# Description: Python bindings for the XML library version 2
# URL: http://xmlsoft.org/
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
# Depends on: python-32 libxml2-32 libxml2-python
name=libxml2-python-32
version=2.9.5
release=1
source=(ftp://xmlsoft.org/libxml2/libxml2-$version.tar.gz
libxml2-python-config.patch)
build() {
cd libxml2-$version
patch -p1 -i $SRC/libxml2-python-config.patch
# --libdir=/usr/lib32 is unpredictable version 2.9.1 and 2.9.2
./configure --prefix=/usr --libdir=/usr/lib32
cd python
make
make DESTDIR=$PKG install
# --libdir is not to be trusted some sort of race at configure
# library will either end up in lib or lib32 depending on mood
# if [ -e $PKG/usr/lib ]; then
# mv $PKG/usr/lib $PKG/usr/lib32
# fi
rm $PKG/usr/lib32/python2.7/site-packages/libxml2mod.{a,la}
rm -r $PKG/usr/share/doc
rmdir $PKG/usr/share
python -mcompileall $PKG/usr/lib32/python2.7/
}