apr: remove $XBPS_CROSS_BASE cruft
This commit is contained in:
parent
83cff1801c
commit
05155e81c6
1 changed files with 10 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'apr'
|
||||
pkgname=apr
|
||||
version=1.7.0
|
||||
revision=3
|
||||
revision=4
|
||||
build_style=gnu-configure
|
||||
configure_args="--with-installbuilddir=/usr/share/apr-1/build"
|
||||
makedepends="expat-devel libuuid-devel"
|
||||
|
@ -42,6 +42,14 @@ pre_build() {
|
|||
fi
|
||||
}
|
||||
|
||||
post_install() {
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
vsed -i -e "s,$XBPS_CROSS_BASE,,g" \
|
||||
"$DESTDIR/usr/bin/apr-1-config" \
|
||||
"$DESTDIR/usr/share/apr-1/build/apr_rules.mk"
|
||||
fi
|
||||
}
|
||||
|
||||
apr-devel_package() {
|
||||
depends="libtool libuuid-devel apr>=${version}_${revision}"
|
||||
short_desc+=" - development files"
|
||||
|
@ -53,6 +61,6 @@ apr-devel_package() {
|
|||
vmove "usr/lib/*.so"
|
||||
vmove "usr/lib/*.exp"
|
||||
vmove usr/lib/pkgconfig
|
||||
ln -sf /usr/bin/libtool ${PKGDESTDIR}/usr/share/apr-1/build/libtool
|
||||
ln -sf ../../../bin/libtool "$PKGDESTDIR/usr/share/apr-1/build/"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue