summarylogtreecommitdiffstats
path: root/build.sh
blob: 51b749dbe1ba2811dd8cefa65ffaa2670e5b2fef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
set -e

# make all required packages available in pkg-cache, e.g. like this:

# mkdir pkg-cache
# yay -S r-testthat
# mv /tmp/yaytmp-1000/*/*.pkg.tar.xz pkg-cache/

declare -a args
for dep in $(pactree -u r-testthat | grep '^r-'); do
	args+=('-I' "$(ls ./pkg-cache/$dep-*)")
done

extra-x86_64-build -- "${args[@]}"