fractal: fix cross
This commit is contained in:
parent
f452a06568
commit
607b8bdc5c
|
@ -16,11 +16,6 @@ homepage="https://wiki.gnome.org/Apps/Fractal"
|
||||||
distfiles="https://gitlab.gnome.org/World/fractal/-/archive/$version/$pkgname-$version.tar.gz"
|
distfiles="https://gitlab.gnome.org/World/fractal/-/archive/$version/$pkgname-$version.tar.gz"
|
||||||
checksum=3c3ea4e67e6d8fbc2e7b220fef188dcde5229e83c2cfeeadee42137718b34e56
|
checksum=3c3ea4e67e6d8fbc2e7b220fef188dcde5229e83c2cfeeadee42137718b34e56
|
||||||
|
|
||||||
post_patch() {
|
|
||||||
# fixes an indexmap error when cross compiling
|
|
||||||
cargo update --package autocfg --precise 1.1.0
|
|
||||||
}
|
|
||||||
|
|
||||||
post_patch() {
|
post_patch() {
|
||||||
[ -z "$CROSS_BUILD" ] && return 0
|
[ -z "$CROSS_BUILD" ] && return 0
|
||||||
|
|
||||||
|
@ -28,3 +23,9 @@ post_patch() {
|
||||||
-e 's;"$CARGO_TARGET_DIR";&/${RUST_TARGET};' \
|
-e 's;"$CARGO_TARGET_DIR";&/${RUST_TARGET};' \
|
||||||
-e '/CARGO_HOME/d'
|
-e '/CARGO_HOME/d'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pre_build() {
|
||||||
|
# fixes an indexmap error when cross compiling
|
||||||
|
cargo update --package autocfg:1.0.0 --precise 1.1.0
|
||||||
|
cargo update --package autocfg:0.1.7 --precise 0.1.8
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue