ladybird/Ports/zlib/package.sh
Tim Schumacher b9a5442b59 Ports/zlib: Switch to tarball copies hosted on GitHub
zlib.net uses DDoS protection, which results in broken downloads
whenever a browser validation page is served instead. The tarballs that
are uploaded to GitHub releases are identical with the ones that are
served on zlib.net.
2024-03-05 18:16:09 +01:00

16 lines
546 B
Bash
Executable File

#!/usr/bin/env -S bash ../.port_include.sh
port='zlib'
version='1.3.1'
useconfigure='true'
files=(
"https://github.com/madler/zlib/releases/download/v${version}/zlib-${version}.tar.gz#9a93b2b7dfdac77ceba5a558a580e74667dd6fede4585b91eefb60f03b72df23"
)
configure() {
# No SONAME is set on unknown systems by default. Manually set it
# to an unversioned name to avoid needing to rebuild dependent
# ports after a minor version upgrade.
export LDSHARED="$CC -shared -Wl,-soname,libz.so"
run ./configure --uname=SerenityOS
}