Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2019-10-24 08:35:08 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2019-10-24 08:35:08 +0200
commit6d731455078de6b379609ca606bde834cc72dee5 (patch)
tree6681a810f344f28d05cd0d176dae1c6e1b05c4cc /extra
parent90d82c3cd02434e00b76ecf719fdf11b06e7b6be (diff)
extra/rust: added watcher before x.py and removed lib32-rust-libs subpackage
Diffstat (limited to 'extra')
-rw-r--r--extra/rust/PKGBUILD22
1 files changed, 22 insertions, 0 deletions
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/})