diff --git a/srcpkgs/libxslt/template b/srcpkgs/libxslt/template index a488405bdb..e38b28fff1 100644 --- a/srcpkgs/libxslt/template +++ b/srcpkgs/libxslt/template @@ -1,7 +1,7 @@ # Template file for 'libxslt' pkgname=libxslt version=1.1.34 -revision=2 +revision=3 build_style=gnu-configure configure_args="--disable-static --disable-dependency-tracking" hostmakedepends="libtool" @@ -34,7 +34,15 @@ post_configure() { post_install() { # Remove references to the install(1) wrapper. - sed -e "s,${XBPS_WRAPPERDIR},/usr/bin,g" -i ${DESTDIR}/usr/bin/xslt-config + vsed -e "s,${XBPS_WRAPPERDIR},/usr/bin,g" -i ${DESTDIR}/usr/bin/xslt-config + if [ "$CROSS_BUILD" ]; then + # Remove $XBPS_CROSS_BASE in pkg-config + vsed -i -e "s,$XBPS_CROSS_BASE,,g" \ + $DESTDIR/usr/bin/xslt-config \ + $DESTDIR/usr/lib/pkgconfig/libxslt.pc \ + $DESTDIR/usr/lib/pkgconfig/libexslt.pc \ + $DESTDIR/usr/lib/xsltConf.sh + fi vlicense COPYING } @@ -56,7 +64,6 @@ libxslt-devel_package() { libxslt-python_package() { lib32disabled=yes short_desc+=" - python extension" - pycompile_module="libxslt.py" pkg_install() { vmove "usr/lib/python*" vmove usr/share/doc/${sourcepkg}-python-${version}