From 6d731455078de6b379609ca606bde834cc72dee5 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 24 Oct 2019 08:35:08 +0200 Subject: extra/rust: added watcher before x.py and removed lib32-rust-libs subpackage --- extra/rust/PKGBUILD | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'extra/rust') diff --git a/extra/rust/PKGBUILD b/extra/rust/PKGBUILD index ac7f0b37..5473a68c 100644 --- a/extra/rust/PKGBUILD +++ b/extra/rust/PKGBUILD @@ -36,6 +36,14 @@ fi # Don't move lib32 support into rust32-lib, we are on 32-bit in the end # and don't draw a symlink to 64-bit libraries (but to 32-bit instead) + +pkgname=( + $( + printf '%s\n' "${pkgname[@]}" | \ + grep -v '^lib32-rust-libs' + ) +) + eval "$( declare -f package_rust | \ sed ' @@ -50,6 +58,20 @@ eval "$( source+=('watcher.sh') sha256sums+=('a37ef742e079c7f7e80297bdb97115808b48f77fd92571468853de5cbd7ee800') +if [ "${CARCH}" = "i686" ]; then + eval "$( + declare -f package_rust | \ + sed ' + /.\/x.py/ i \ + "$srcdir/watcher.sh" "$srcdir" & \ + _kill_pid=$! \ + sleep 10 + /.\/x.py/ a \ + kill $_kill_pid + ' + )" +fi + # Enable on demand, if your previous rust is broken, see also build-support and AUR # for rust-bin. #makedepends=(${makedepends[@]//rust/}) -- cgit v1.2.3-70-g09d2