chroot-file: try to fix cross build a bit harder.
This commit is contained in:
parent
b919b35c6b
commit
4105b9517a
|
@ -4,6 +4,7 @@ version=5.17
|
||||||
revision=1
|
revision=1
|
||||||
wrksrc="file-${version}"
|
wrksrc="file-${version}"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
|
hostmakedepends="zlib-devel"
|
||||||
makedepends="zlib-devel"
|
makedepends="zlib-devel"
|
||||||
short_desc="File type identification utility -- for xbps-src use"
|
short_desc="File type identification utility -- for xbps-src use"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
|
@ -33,7 +34,7 @@ pre_configure() {
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
if [ "$CROSS_BUILD" ]; then
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue