build: cache javascript downloads

This commit is contained in:
George Rawlinson 2022-01-04 20:11:14 +00:00
parent 092e8b10bd
commit af763412e4
Signed by: grawlinson
GPG Key ID: E0959FEA8B550539
1 changed files with 8 additions and 0 deletions

View File

@ -49,6 +49,14 @@ for package in "${PACKAGES[@]}"; do
EXTRA_ARGS+=(--bind-rw /var/cache/dartlang:/build/.pub-cache)
fi
# javascript - npm/yarn/pkg
if grep -q "depends = npm\|yarn\|nodejs" <<<"$makepkg_output"; then
EXTRA_ARGS+=(
--bind-rw /var/cache/javascript/npm:/build/.npm
--bind-rw /var/cache/javascript/pkg-cache:/build/.pkg-cache
)
fi
# build signed package in chroot & add to local repo
aur build \
--chroot \