summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMickaël Thomas2023-12-04 17:39:16 +0100
committerMickaël Thomas2023-12-04 17:39:16 +0100
commitf3405a7c986a89a44ee4a087504575311e961ae5 (patch)
tree22ea31f3c2e048c621f45ef726cad140ef0e2658
parentffd992c88396b5c7334983b1ec20037a77573b9e (diff)
downloadaur-f3405a7c986a89a44ee4a087504575311e961ae5.tar.gz
Override DLAGENTS
Microchip doesn't allow direct download if the Referer header is not provided
-rw-r--r--PKGBUILD2
1 files changed, 2 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 028090c55daf..0ec0e59de002 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -27,6 +27,8 @@ _mplabx_installer="MPLABX-v${pkgver}-linux-installer"
_mplabcomm_dir="/opt/microchip/mplabcomm"
+# Override DLAGENTS as microchip doesn't allow direct download if the Referer header is not provided
+DLAGENTS=('https::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -e "https://www.microchip.com/en-us/tools-resources/develop/mplab-x-ide" -o %o %u')
source=("https://ww1.microchip.com/downloads/aemDocuments/documents/DEV/ProductDocuments/SoftwareTools/${_mplabx_installer}.tar"
"LICENSE"