chroot-file: try to fix cross build a bit harder.

This commit is contained in:
Juan RP 2014-02-14 11:22:43 +01:00
parent b919b35c6b
commit 4105b9517a
1 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ version=5.17
revision=1
wrksrc="file-${version}"
build_style=gnu-configure
hostmakedepends="zlib-devel"
makedepends="zlib-devel"
short_desc="File type identification utility -- for xbps-src use"
maintainer="Juan RP <xtraeme@gmail.com>"
@ -33,7 +34,7 @@ pre_configure() {
pre_build() {
if [ "$CROSS_BUILD" ]; then
sed "s,file --version,${wrksrc}/host-build/file --version,g" -i magic/Makefile
sed "s,file --version | sed -e s/file-// -e q,${wrksrc}/host-build/file --version | sed -e s/file-// -e s/lt-// -e q,g" -i magic/Makefile
fi
}