mirror of
https://github.com/SerenityOS/serenity.git
synced 2026-11-07 04:29:30 -10:00
Add support for mirror:// sources in Ports downloads. Resolve mirror types centrally and try their configured URLs in order. Add a GNU mirror type using ftpmirror.gnu.org and ftp.gnu.org, migrate existing GNU ftpmirror sources to use mirror://gnu, and verify pro downloads against the expected SHA256 so failed responses can fall back to the next mirror. Switched to dynamic variables like in \#26427 and replaced readarray with a loop that works on macOS.
16 lines
464 B
Bash
Executable File
16 lines
464 B
Bash
Executable File
#!/usr/bin/env -S bash ../.port_include.sh
|
|
port='diffutils'
|
|
version='3.12'
|
|
depends=(
|
|
'libiconv'
|
|
)
|
|
files=(
|
|
"mirror://gnu/diffutils/diffutils-${version}.tar.xz#7c8b7f9fc8609141fdea9cece85249d308624391ff61dedaf528fcb337727dfd"
|
|
)
|
|
useconfigure='true'
|
|
configopts=(
|
|
# [diffutils/configure] checking whether strcasecmp works...
|
|
# [diffutils/configure] configure: error: cannot run test program while cross compiling
|
|
'gl_cv_func_strcasecmp_works=yes'
|
|
)
|