compat-32/libxml2-python-32/Pkgfile

36 lines
938 B
Plaintext
Raw Normal View History

# Description: Python bindings for the XML library version 2
2014-10-18 13:59:29 +02:00
# URL: http://xmlsoft.org/
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
2019-08-27 13:48:19 +02:00
# Depends on: libxml2-32 libxml2-python python-32
name=libxml2-python-32
2019-11-02 05:24:44 +01:00
version=2.9.10
2015-11-21 03:12:49 +01:00
release=1
2018-03-10 04:31:56 +01:00
source=(http://xmlsoft.org/sources/libxml2-$version.tar.gz
2014-10-18 13:59:29 +02:00
libxml2-python-config.patch)
2014-10-18 13:59:29 +02:00
build() {
cd libxml2-$version
2012-12-24 11:32:57 +01:00
2014-10-18 13:59:29 +02:00
patch -p1 -i $SRC/libxml2-python-config.patch
# --libdir=/usr/lib32 is unpredictable version 2.9.1 and 2.9.2
2014-10-18 13:59:29 +02:00
./configure --prefix=/usr --libdir=/usr/lib32
cd python
2012-12-24 11:32:57 +01:00
2014-10-18 13:59:29 +02:00
make
make DESTDIR=$PKG install
2013-05-29 05:25:53 +02:00
# --libdir is not to be trusted some sort of race at configure
# library will either end up in lib or lib32 depending on mood
2015-11-21 03:12:49 +01:00
# if [ -e $PKG/usr/lib ]; then
# mv $PKG/usr/lib $PKG/usr/lib32
# fi
2014-10-18 13:59:29 +02:00
rm $PKG/usr/lib32/python2.7/site-packages/libxml2mod.{a,la}
rm -r $PKG/usr/share/doc
rmdir $PKG/usr/share
2013-10-27 09:05:29 +01:00
2014-10-18 13:59:29 +02:00
python -mcompileall $PKG/usr/lib32/python2.7/
}