From 9638c140032b03801e7902dc53415928c6c9bf8c Mon Sep 17 00:00:00 2001 From: vanhofen Date: Thu, 30 Jun 2022 22:28:05 +0200 Subject: [PATCH] - add curl-controlled downloads --- make/buildsystem-helpers.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/make/buildsystem-helpers.mk b/make/buildsystem-helpers.mk index d2219b0f..eec4cbd0 100644 --- a/make/buildsystem-helpers.mk +++ b/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))