File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1291,6 +1291,31 @@ build_wipe() {
12911291 rm -rf " ${BUILD_BASEDIR} /" " ${PKG_BASEDIR} /" " ${PKG_TARBALL} "
12921292}
12931293
1294+ build_download () {
1295+ local upstreams=(
1296+ ' https://dl.unvanquished.net/deps'
1297+ ' https://dl.unvanquished.net/test/deps'
1298+ )
1299+
1300+ local mirrors=()
1301+ for upstream in " ${upstreams[@]} "
1302+ do
1303+ mirrors+=(" ${upstream} /${PKG_TARBALL} " )
1304+ done
1305+
1306+ download " ${PKG_TARBALL} " " ${mirrors[@]} "
1307+
1308+ " ${download_only} " && return
1309+
1310+ rm -rf " ${PKG_BASEDIR} "
1311+
1312+ extract " ${PKG_TARBALL} " ' download_deps'
1313+ mv " ${PKG_BASEDIR} " ..
1314+
1315+ cd ..
1316+ rmdir ' download_deps'
1317+ }
1318+
12941319# Common setup code
12951320common_setup () {
12961321 HOST=" ${2} "
@@ -1507,6 +1532,8 @@ printHelp() {
15071532 install create a stripped down version of the built packages that CMake can use
15081533 package create a tarball of the dependencies so they can be distributed
15091534 wipe remove products of build process, excepting download cache but INCLUDING installed files. Must be last
1535+ download
1536+ download and extract the prebuilt tarball like CMake does
15101537
15111538 Packages required for each platform:
15121539
You can’t perform that action at this time.
0 commit comments