From 607b8bdc5c078b2080116f9e52f278f5be8b813f Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Sat, 20 Aug 2022 09:39:18 +0200 Subject: [PATCH] fractal: fix cross --- srcpkgs/fractal/template | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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 +}