1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/bash set -e # yay -S r-testthat # mv /tmp/yaytmp-1000/*/*.pkg.tar.xz .cache/yay/ declare -a args for dep in $(pactree -u r-testthat | grep '^r-'); do args+=('-I' "$(ls ~/.cache/yay/$dep-*)") done extra-x86_64-build -- "${args[@]}"