From d6c8742c938706cda2d874fcb5e5c2b5c270ed817512317e8ec618deb68b4ff6 Mon Sep 17 00:00:00 2001 From: sisungo Date: Wed, 4 Nov 2026 06:17:09 +0000 Subject: [PATCH] feat: upgrade curl to v8.23.0 Signed-off-by: sisungo --- lib/make.py | 2 +- packages/curl/pkgbuild.py | 156 +++++++++++++++++++++----------------- 2 files changed, 87 insertions(+), 71 deletions(-) diff --git a/lib/make.py b/lib/make.py index 6baa609..de54110 100644 --- a/lib/make.py +++ b/lib/make.py @@ -47,7 +47,7 @@ def builddep(s: str): builddep("shortcut/c") _builddep += ["libcxx-dev"] elif s == "shortcut/autotools": - _builddep += ["gnu-make", "gnu-sed", "awk", "grep"] + _builddep += ["gnu-make", "gnu-sed", "awk", "grep", "pkgconf"] elif s == "shortcut/rust": builddep("shortcut/c") _builddep += ["cargo", "rust"] diff --git a/packages/curl/pkgbuild.py b/packages/curl/pkgbuild.py index 504de9e..a4479d2 100644 --- a/packages/curl/pkgbuild.py +++ b/packages/curl/pkgbuild.py @@ -1,94 +1,100 @@ from lib import cpp, arch from lib.make import * -version("8.21.0") + +version("8.23.0") description("command line tool and library for transferring data with URLs") maintainer("sisungo ") -source_url("https://curl.se/download/curl-8.21.0.tar.gz") +source_url("https://curl.se/download/curl-8.23.0.tar.gz") builddep("shortcut/c") builddep("shortcut/autotools") -builddep(f"libnghttp2-dev @{arch.get_target()}") -builddep(f"libcares-dev @{arch.get_target()}") -builddep(f"aws-lc-dev @{arch.get_target()}") -builddep(f"libbrotli-dev @{arch.get_target()}") -builddep(f"libz-dev @{arch.get_target()}") -builddep(f"libzstd-dev @{arch.get_target()}") -builddep(f"libpsl-dev @{arch.get_target()}") +builddep("libnghttp2-dev @target") +builddep("libcares-dev @target") +builddep("aws-lc-dev @target") +builddep("libbrotli-dev @target") +builddep("libz-dev @target") +builddep("libzstd-dev @target") +builddep("libpsl-dev @target") +builddep("libngtcp2-dev @target") +builddep("libnghttp3-dev @target") + def build(): - cpp.configure( - [ - "--prefix=/", - f"--bindir={get_prefix('curl')}/bin", - f"--libdir={get_prefix('libcurl')}/lib", - f"--includedir={get_prefix('libcurl-dev')}/include", - "--enable-optimize", - "--disable-debug", - "--enable-warnings", - "--enable-symbol-hiding", - "--enable-ares", - "--enable-http", - "--enable-ftp", - "--enable-file", - "--enable-ipfs", - "--disable-ldap", - "--disable-ldaps", - "--enable-rtsp", - "--enable-proxy", - "--enable-dict", - "--enable-telnet", - "--enable-tftp", - "--enable-pop3", - "--enable-imap", - "--enable-smb", - "--enable-smtp", - "--enable-gopher", - "--enable-mqtt", - "--disable-init-mem-debug", - "--enable-manual", - "--enable-docs", - "--enable-libcurl-option", - "--enable-ipv6", - "--enable-openssl-auto-load-config", - "--with-ca-path=/var/config/ssl/certs", - "--enable-versioned-symbols", - "--enable-typecheck", - "--enable-verbose", - "--disable-tls-srp", - "--enable-unix-sockets", - "--enable-cookies", - "--enable-socketpair", - "--enable-http-auth", - "--enable-doh", - "--enable-mime", - "--enable-bindlocal", - "--enable-form-api", - "--enable-dateparse", - "--enable-netrc", - "--enable-progress-meter", - "--enable-get-easy-options", - "--enable-alt-svc", - "--enable-headers-api", - "--enable-hsts", - "--enable-websockets", - "--with-openssl", - "--with-nghttp2", - "--without-libidn2", - ] - ) + cpp.configure([ + "--prefix=/", + f"--bindir={get_prefix('curl')}/bin", + f"--libdir={get_prefix('libcurl')}/lib", + f"--includedir={get_prefix('libcurl-dev')}/include", + "--enable-optimize", + "--disable-debug", + "--enable-warnings", + "--enable-symbol-hiding", + "--enable-ares", + "--enable-http", + "--enable-ftp", + "--enable-file", + "--enable-ipfs", + "--disable-ldap", + "--disable-ldaps", + "--enable-rtsp", + "--enable-proxy", + "--enable-dict", + "--enable-telnet", + "--enable-tftp", + "--enable-pop3", + "--enable-imap", + "--enable-smb", + "--enable-smtp", + "--enable-gopher", + "--enable-mqtt", + "--disable-init-mem-debug", + "--enable-manual", + "--enable-docs", + "--enable-libcurl-option", + "--enable-ipv6", + "--enable-openssl-auto-load-config", + "--with-ca-path=/var/config/ssl/certs", + "--enable-versioned-symbols", + "--enable-typecheck", + "--enable-verbose", + "--disable-tls-srp", + "--enable-unix-sockets", + "--enable-cookies", + "--enable-socketpair", + "--enable-http-auth", + "--enable-doh", + "--enable-mime", + "--enable-bindlocal", + "--enable-form-api", + "--enable-dateparse", + "--enable-netrc", + "--enable-progress-meter", + "--enable-get-easy-options", + "--enable-alt-svc", + "--enable-headers-api", + "--enable-hsts", + "--enable-websockets", + "--with-openssl", + "--with-nghttp2", + "--with-nghttp3", + "--with-ngtcp2", + "--without-libidn2", + ]) cpp.make() cpp.make_install() - on_build(build) + package("libcurl") dep("semi-libc @same-arch") dep("libpsl @same-arch") dep("libz @same-arch") dep("libcares @same-arch") dep("libnghttp2 @same-arch") +dep("libnghttp3 @same-arch") +dep("libngtcp2 @same-arch") dep("libssl @same-arch") dep("libcrypto @same-arch") dep("libzstd @same-arch") @@ -101,4 +107,14 @@ cpp.use_auto_pack(["bin"]) package("libcurl-dev") dep("libcurl (same)") +dep("semi-libc-dev @same-arch") +dep("libpsl-dev @same-arch") +dep("libz-dev @same-arch") +dep("libcares-dev @same-arch") +dep("libnghttp2-dev @same-arch") +dep("libnghttp3-dev @same-arch") +dep("libngtcp2-dev @same-arch") +dep("aws-lc-dev @same-arch") +dep("libzstd-dev @same-arch") +dep("libbrotli-dev @same-arch") cpp.use_auto_pack(["dev"])