-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
re-add zstd support, enabled in the "big" builds [ci skip]
Strictly experimental, might be gone in a next commit. ``` curl 7.84.0 (x86_64-w64-mingw32) libcurl/7.84.0 BoringSSL/7528f03c (Schannel) zlib/1.2.12 brotli/1.0.9 zstd/1.5.2 libidn2/2.3.3 libpsl/0.21.1 (+libidn2/2.3.3) libssh2/1.10.0 nghttp2/1.48.0 ngtcp2/0.6.0 nghttp3/0.5.0 libgsasl/1.10.0 Release-Date: 2022-06-27 Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp Features: alt-svc AsynchDNS brotli gsasl HSTS HTTP2 HTTP3 HTTPS-proxy IDN IPv6 Kerberos Largefile libz MultiSSL NTLM PSL SPNEGO SSL SSPI threadsafe UnixSockets zstd ```
- Loading branch information
Showing
8 changed files
with
102 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
#!/bin/sh | ||
|
||
# Copyright 2017-present Viktor Szakats. See LICENSE.md | ||
|
||
# shellcheck disable=SC3040 | ||
set -o xtrace -o errexit -o nounset; [ -n "${BASH:-}${ZSH_NAME:-}" ] && set -o pipefail | ||
|
||
export _NAM _VER _OUT _BAS _DST | ||
|
||
_NAM="$(basename "$0" | cut -f 1 -d '.')" | ||
_VER="$1" | ||
|
||
( | ||
cd "${_NAM}" || exit 0 | ||
|
||
rm -r -f "${_PKGDIR}" "${_BLDDIR}" | ||
|
||
_CFLAGS="${_CFLAGS_GLOBAL} ${_CPPFLAGS_GLOBAL}" | ||
|
||
# shellcheck disable=SC2086 | ||
cmake build/cmake -B "${_BLDDIR}" ${_CMAKE_GLOBAL} ${_CMAKE_CXX_GLOBAL} \ | ||
'-DZSTD_BUILD_CONTRIB=OFF' \ | ||
'-DZSTD_BUILD_TESTS=OFF' \ | ||
'-DZSTD_LEGACY_SUPPORT=OFF' \ | ||
'-DZSTD_BUILD_PROGRAMS=OFF' \ | ||
'-DZSTD_PROGRAMS_LINK_SHARED=OFF' \ | ||
'-DZSTD_BUILD_SHARED=OFF' \ | ||
'-DZSTD_BUILD_STATIC=ON' \ | ||
'-DZSTD_MULTITHREAD_SUPPORT=OFF' \ | ||
"-DCMAKE_C_FLAGS=-Wno-unused-command-line-argument ${_CFLAGS} ${_LDFLAGS_GLOBAL} ${_LIBS_GLOBAL}" \ | ||
"-DCMAKE_CXX_FLAGS=-Wno-unused-command-line-argument ${_CFLAGS} ${_LDFLAGS_GLOBAL} ${_LIBS_GLOBAL} ${_CXXFLAGS_GLOBAL} ${_LDFLAGS_CXX_GLOBAL}" | ||
|
||
make --directory="${_BLDDIR}" --jobs="${_JOBS}" install "DESTDIR=$(pwd)/${_PKGDIR}" | ||
|
||
_pkg="${_PP}" # DESTDIR= + _PREFIX | ||
|
||
# Delete .pc files | ||
rm -r -f "${_pkg}"/lib/pkgconfig | ||
|
||
# Make steps for determinism | ||
|
||
readonly _ref='CHANGELOG' | ||
|
||
"${_STRIP}" --enable-deterministic-archives --strip-debug "${_pkg}"/lib/*.a | ||
|
||
touch -c -r "${_ref}" "${_pkg}"/include/*.h | ||
touch -c -r "${_ref}" "${_pkg}"/lib/*.a | ||
|
||
# Create package | ||
|
||
_OUT="${_NAM}-${_VER}${_REVSUFFIX}${_PKGSUFFIX}" | ||
_BAS="${_NAM}-${_VER}${_PKGSUFFIX}" | ||
_DST="$(mktemp -d)/${_BAS}" | ||
|
||
mkdir -p "${_DST}" | ||
mkdir -p "${_DST}/include" | ||
mkdir -p "${_DST}/lib" | ||
|
||
cp -f -p "${_pkg}"/include/*.h "${_DST}/include/" | ||
cp -f -p "${_pkg}"/lib/*.a "${_DST}/lib/" | ||
cp -f -p CHANGELOG "${_DST}/CHANGELOG.txt" | ||
cp -f -p README.md "${_DST}/" | ||
cp -f -p LICENSE "${_DST}/LICENSE.txt" | ||
|
||
../_pkg.sh "$(pwd)/${_ref}" | ||
) |