diff --git a/srcpkgs/fractal/template b/srcpkgs/fractal/template index 37461c7272b..933308194cf 100644 --- a/srcpkgs/fractal/template +++ b/srcpkgs/fractal/template @@ -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 +}