diff --git a/libxml2-python-32/Pkgfile b/libxml2-python-32/Pkgfile index 2b8c1101..474a4f06 100644 --- a/libxml2-python-32/Pkgfile +++ b/libxml2-python-32/Pkgfile @@ -5,7 +5,7 @@ name=libxml2-python-32 version=2.9.2 -release=1 +release=2 source=(ftp://xmlsoft.org/libxml2/libxml2-$version.tar.gz libxml2-python-config.patch) @@ -14,12 +14,19 @@ build() { 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