121 lines
3.1 KiB
Python
121 lines
3.1 KiB
Python
from lib import cpp, arch
|
|
from lib.make import *
|
|
|
|
|
|
version("8.23.0")
|
|
description("command line tool and library for transferring data with URLs")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_url("https://curl.se/download/curl-8.23.0.tar.gz")
|
|
|
|
builddep("shortcut/c")
|
|
builddep("shortcut/autotools")
|
|
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",
|
|
"--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")
|
|
dep("libbrotli @same-arch")
|
|
cpp.use_auto_pack(["lib"])
|
|
|
|
package("curl")
|
|
dep("libcurl (same)")
|
|
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"])
|