build: cache javascript downloads
This commit is contained in:
parent
092e8b10bd
commit
af763412e4
1 changed files with 8 additions and 0 deletions
|
@ -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 \
|
||||||
|
|
Loading…
Reference in a new issue