fractal: fix cross

This commit is contained in:
Michal Vasilek 2022-08-20 09:39:18 +02:00
parent f452a06568
commit 607b8bdc5c
1 changed files with 6 additions and 5 deletions

View File

@ -16,11 +16,6 @@ homepage="https://wiki.gnome.org/Apps/Fractal"
distfiles="https://gitlab.gnome.org/World/fractal/-/archive/$version/$pkgname-$version.tar.gz"
checksum=3c3ea4e67e6d8fbc2e7b220fef188dcde5229e83c2cfeeadee42137718b34e56
post_patch() {
# fixes an indexmap error when cross compiling
cargo update --package autocfg --precise 1.1.0
}
post_patch() {
[ -z "$CROSS_BUILD" ] && return 0
@ -28,3 +23,9 @@ post_patch() {
-e 's;"$CARGO_TARGET_DIR";&/${RUST_TARGET};' \
-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
}