57 lines
1.5 KiB
Bash
57 lines
1.5 KiB
Bash
# Maintainer: ObserverOfTime <chronobserver@disroot.org>
|
|
# based on curl-http3-msquic
|
|
|
|
pkgname=curl-http3-quictls
|
|
pkgver=7.88.0
|
|
pkgrel=1
|
|
pkgdesc="A URL retrieval utility and library - compiled with HTTP/3 support"
|
|
arch=('x86_64')
|
|
url="https://curl.haxx.se"
|
|
license=('MIT')
|
|
depends=('brotli' 'ca-certificates' 'krb5' 'libidn2'
|
|
'libnghttp2' 'libpsl' 'libssh2' 'nghttp3'
|
|
'ngtcp2' 'quictls-openssl' 'zlib' 'zstd')
|
|
makedepends=('perl')
|
|
conflicts=('curl' 'curl-http3')
|
|
provides=('curl' 'curl-http3' 'libcurl.so=4-64')
|
|
source=("https://curl.haxx.se/download/curl-${pkgver}.tar.gz")
|
|
sha256sums=('dfb8582a05a893e305783047d791ffef5e167d295cf8d12b9eb9cfa0991ca5a9')
|
|
options=('staticlibs')
|
|
|
|
build() {
|
|
mkdir -p build-curl
|
|
|
|
cd "${srcdir}/curl-${pkgver}"
|
|
autoreconf -fi
|
|
|
|
cd "${srcdir}/build-curl"
|
|
"${srcdir}/curl-${pkgver}"/configure \
|
|
--prefix=/usr \
|
|
--mandir=/usr/share/man \
|
|
--with-libssh2 \
|
|
--with-gssapi \
|
|
--with-openssl \
|
|
--with-ngtcp2 \
|
|
--with-nghttp3 \
|
|
--with-random=/dev/urandom \
|
|
--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt \
|
|
--enable-ipv6 \
|
|
--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
|
|
|
|
cd "${srcdir}/curl-${pkgver}"
|
|
install -Dt "${pkgdir}/usr/share/licenses/$pkgname" -m0644 COPYING
|
|
}
|