libxslt: remove $XBPS_CROSS_BASE reference from pkg-config

See-also: #19642
This commit is contained in:
Đoàn Trần Công Danh 2020-05-19 21:55:50 +07:00 committed by Đoàn Trần Công Danh
parent b94748f6a6
commit 33fb64640a

View file

@ -1,7 +1,7 @@
# Template file for 'libxslt' # Template file for 'libxslt'
pkgname=libxslt pkgname=libxslt
version=1.1.34 version=1.1.34
revision=2 revision=3
build_style=gnu-configure build_style=gnu-configure
configure_args="--disable-static --disable-dependency-tracking" configure_args="--disable-static --disable-dependency-tracking"
hostmakedepends="libtool" hostmakedepends="libtool"
@ -34,7 +34,15 @@ post_configure() {
post_install() { post_install() {
# Remove references to the install(1) wrapper. # 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 vlicense COPYING
} }
@ -56,7 +64,6 @@ libxslt-devel_package() {
libxslt-python_package() { libxslt-python_package() {
lib32disabled=yes lib32disabled=yes
short_desc+=" - python extension" short_desc+=" - python extension"
pycompile_module="libxslt.py"
pkg_install() { pkg_install() {
vmove "usr/lib/python*" vmove "usr/lib/python*"
vmove usr/share/doc/${sourcepkg}-python-${version} vmove usr/share/doc/${sourcepkg}-python-${version}