Browse Source

- add curl-controlled downloads

master
vanhofen 3 years ago
parent
commit
9638c14003
  1. 4
      make/buildsystem-helpers.mk

4
make/buildsystem-helpers.mk

@ -61,6 +61,10 @@ define DOWNLOAD
elif [ ! -f $(DL_DIR)/$(1) ]; then \
$(call MESSAGE,"Downloading") ; \
$(GET_ARCHIVE) $(DL_DIR) $($(PKG)_SITE)/$(1); \
elif [ "$($(PKG)_VERSION)" == "curl-controlled" ]; then \
$(call MESSAGE,"Downloading") ; \
$(CD) $(DL_DIR); \
curl --remote-name --time-cond $($(PKG)_SOURCE) $($(PKG)_SITE)/$($(PKG)_SOURCE) || true; \
fi; \
)
$(foreach hook,$($(PKG)_POST_DOWNLOAD_HOOKS),$(call $(hook))$(sep))

Loading…
Cancel
Save