version=4
opts="searchmode=plain,\
uversionmangle=s/%2B/+/g" \
https://api.github.com/repos/raspberrypi/@PACKAGE@/releases?per_page=50 \
https://github\.com/[^/]+/[^/]+/releases/download/[^/]+/@PACKAGE@_([^"]+)\.orig\.tar\.xz

# Disable the components we cannot re-distribute
#opts="searchmode=plain,\
#uversionmangle=s/%2B/+/g, \
#component=hailo-models" \
#https://api.github.com/repos/raspberrypi/@PACKAGE@/releases?per_page=50 \
#https://github\.com/[^/]+/[^/]+/releases/download/[^/]+/rpicam-apps_([^"]+)\.orig-hailo-models\.tar\.xz
#
#opts="searchmode=plain,\
#uversionmangle=s/%2B/+/g, \
#component=imx500-models" \
#https://api.github.com/repos/raspberrypi/@PACKAGE@/releases?per_page=50 \
#https://github\.com/[^/]+/[^/]+/releases/download/[^/]+/rpicam-apps_([^"]+)\.orig-imx500-models\.tar\.xz
