2022-08-24 22:37:44 +02:00
|
|
|
# Maintainer: ObserverOfTime <chronobserver@disroot.org>
|
|
|
|
# based on curl-http3-msquic
|
|
|
|
|
2024-01-24 15:08:36 +01:00
|
|
|
pkgname=curl-http3-nghttp3
|
|
|
|
pkgver=8.5.0.r195.g0535f6e
|
2024-01-29 11:20:07 +01:00
|
|
|
pkgrel=2
|
2022-08-24 22:37:44 +02:00
|
|
|
pkgdesc="A URL retrieval utility and library - compiled with HTTP/3 support"
|
|
|
|
arch=('x86_64')
|
|
|
|
url="https://curl.haxx.se"
|
|
|
|
license=('MIT')
|
2024-01-29 11:20:07 +01:00
|
|
|
depends=('brotli' 'c-ares' 'ca-certificates' 'krb5'
|
|
|
|
'libidn2' 'libnghttp2' 'libnghttp3' 'libpsl'
|
|
|
|
'libssh2' 'openssl>=3.2' 'zlib' 'zstd')
|
2024-01-24 15:08:36 +01:00
|
|
|
makedepends=('git' 'perl')
|
2022-08-24 22:37:44 +02:00
|
|
|
conflicts=('curl' 'curl-http3')
|
2024-01-24 15:08:36 +01:00
|
|
|
provides=("curl=${pkgver%.r*}" "curl-http3=${pkgver%.r*}" 'libcurl.so=4-64')
|
2024-01-29 11:20:07 +01:00
|
|
|
source=("git+https://github.com/curl/curl#commit=0535f6e")
|
2024-01-24 15:08:36 +01:00
|
|
|
sha256sums=('SKIP')
|
2022-08-24 22:37:44 +02:00
|
|
|
options=('staticlibs')
|
|
|
|
|
2024-01-24 15:08:36 +01:00
|
|
|
pkgver() {
|
|
|
|
cd "${srcdir}/curl"
|
|
|
|
git describe --long --abbrev=7 | \
|
|
|
|
sed 's/^curl-//;s/\([^-]*-g\)/r\1/;s/[-_]/./g'
|
|
|
|
}
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd "${srcdir}/curl"
|
|
|
|
# osslq: remove the TLS library from the version output
|
|
|
|
git cherry-pick -n e17b89db8fb569d1fc32e1ca5ab50abe42b023e8
|
|
|
|
}
|
|
|
|
|
2022-08-24 22:37:44 +02:00
|
|
|
build() {
|
|
|
|
mkdir -p build-curl
|
|
|
|
|
2024-01-24 15:08:36 +01:00
|
|
|
cd "${srcdir}/curl"
|
2022-08-24 22:37:44 +02:00
|
|
|
autoreconf -fi
|
|
|
|
|
|
|
|
cd "${srcdir}/build-curl"
|
2024-01-24 15:08:36 +01:00
|
|
|
"${srcdir}"/curl/configure \
|
2022-08-24 22:37:44 +02:00
|
|
|
--prefix=/usr \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--with-libssh2 \
|
|
|
|
--with-gssapi \
|
|
|
|
--with-nghttp3 \
|
2024-01-24 15:08:36 +01:00
|
|
|
--with-openssl \
|
|
|
|
--with-openssl-quic \
|
2022-08-24 22:37:44 +02:00
|
|
|
--with-random=/dev/urandom \
|
|
|
|
--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt \
|
|
|
|
--enable-ipv6 \
|
2024-01-29 11:20:07 +01:00
|
|
|
--enable-ares \
|
2022-08-24 22:37:44 +02:00
|
|
|
--enable-alt-svc \
|
|
|
|
--enable-threaded-resolver \
|
|
|
|
--enable-versioned-symbols \
|
|
|
|
--disable-ldap \
|
|
|
|
--disable-ldaps \
|
|
|
|
--disable-manual
|
|
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd build-curl
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
make DESTDIR="${pkgdir}" install -C scripts
|
|
|
|
|
2024-01-24 15:08:36 +01:00
|
|
|
cd "${srcdir}/curl"
|
|
|
|
install -Dt "${pkgdir}/usr/share/licenses/${pkgname}" -m0644 COPYING
|
2022-08-24 22:37:44 +02:00
|
|
|
}
|