36 lines
938 B
Plaintext
36 lines
938 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: libxml2-32 libxml2-python python-32
|
|
|
|
name=libxml2-python-32
|
|
version=2.9.10
|
|
release=1
|
|
source=(http://xmlsoft.org/sources/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/
|
|
}
|