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

View file

@ -49,6 +49,14 @@ for package in "${PACKAGES[@]}"; do
EXTRA_ARGS+=(--bind-rw /var/cache/dartlang:/build/.pub-cache) EXTRA_ARGS+=(--bind-rw /var/cache/dartlang:/build/.pub-cache)
fi 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 # build signed package in chroot & add to local repo
aur build \ aur build \
--chroot \ --chroot \