Skip to content
This repository was archived by the owner on Jan 16, 2024. It is now read-only.

Commit 1b45fce

Browse files
committed
rebuild with upstream patch
1 parent ff02917 commit 1b45fce

File tree

4 files changed

+18
-10
lines changed

4 files changed

+18
-10
lines changed

PKGBUILD

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,21 @@ _realname=curl
1313
pkgbase=mingw-w64-${_realname}
1414
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}${_namesuff}"
1515
pkgver=7.56.0
16-
pkgrel=2
16+
pkgrel=1
1717
pkgdesc="Command line tool and library for transferring data with URLs. (mingw-w64)"
1818
arch=('any')
1919
url="https://curl.haxx.se"
2020
license=("MIT")
2121
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc" "${MINGW_PACKAGE_PREFIX}-pkg-config")
2222
depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs"
2323
"${MINGW_PACKAGE_PREFIX}-c-ares"
24-
"${MINGW_PACKAGE_PREFIX}-libmetalink"
25-
"${MINGW_PACKAGE_PREFIX}-libssh2"
2624
"${MINGW_PACKAGE_PREFIX}-zlib"
27-
"${MINGW_PACKAGE_PREFIX}-rtmpdump"
2825
$([[ "$_variant" == "-openssl" ]] && echo \
2926
"${MINGW_PACKAGE_PREFIX}-ca-certificates" \
3027
"${MINGW_PACKAGE_PREFIX}-openssl" \
3128
"${MINGW_PACKAGE_PREFIX}-nghttp2")
3229
$([[ "$_variant" == "-gnutls" ]] && echo \
30+
"${MINGW_PACKAGE_PREFIX}-rtmpdump" \
3331
"${MINGW_PACKAGE_PREFIX}-ca-certificates" \
3432
"${MINGW_PACKAGE_PREFIX}-gnutls")
3533
)
@@ -40,18 +38,23 @@ fi
4038
options=('staticlibs')
4139
source=("${url}/download/${_realname}-${pkgver}.tar.bz2"{,.asc}
4240
"0001-Make-cURL-relocatable.patch"
43-
"0002-cURL-Get-relocatable-base-from-.dll-instead-of-.exe.patch")
44-
sha256sums=('e5b1a92ed3b0c11f149886458fa063419500819f1610c020d62f25b8e4b16cfb'
41+
"0002-cURL-Get-relocatable-base-from-.dll-instead-of-.exe.patch"
42+
"largebuf.patch")
43+
sha256sums=('de60a4725a3d461c70aa571d7d69c788f1816d9d1a8a2ef05f864ce8f01279df'
4544
'SKIP'
46-
'577e900086f91adb332f5ddb95adce980c530445d22aa0fbf4b43b25c2efe80e'
47-
'604b34b5ca9b3520a83a23959f943e330c1ef36b50ee377f8210b59be3e5f62b')
45+
'3008bbfa20f2b23d57db0c4b844af877bd0ad50be7a06148ff5b7b7dc0386f1e'
46+
'604b34b5ca9b3520a83a23959f943e330c1ef36b50ee377f8210b59be3e5f62b'
47+
'SKIP')
4848
validpgpkeys=('914C533DF9B2ADA2204F586D78E11C6B279D5C91' # Daniel Stenberg
4949
'27EDEAF22F3ABCEB50DB9A125CC908FDB71E12C2'
5050
'4461EAF0F8E9097F48AF0555F9FEAFF9D34A1BDB')
5151

5252
prepare() {
5353
cd "${_realname}-${pkgver}"
5454
rm -f lib/pathtools.h lib/pathtools.c > /dev/null 2>&1 || true
55+
patch -p1 -i "${srcdir}/0001-Make-cURL-relocatable.patch"
56+
patch -p1 -i "${srcdir}/0002-cURL-Get-relocatable-base-from-.dll-instead-of-.exe.patch"
57+
patch -p1 -i "${srcdir}/largebuf.patch"
5558
autoreconf -vfi
5659
}
5760

@@ -70,17 +73,20 @@ build() {
7073
_variant_config+=("--with-winssl")
7174
_variant_config+=('--without-nghttp2')
7275
_variant_config+=("--without-ca-bundle")
73-
_variant_config+=("--without-ca-path")
76+
_variant_config+=("--without-ca-path")
77+
_variant_config+=("--without-librtmp")
7478
elif [ "${_variant}" = "-gnutls" ]; then
7579
_variant_config+=("--without-ssl")
7680
_variant_config+=("--with-gnutls")
7781
_variant_config+=('--without-nghttp2')
7882
_variant_config+=("--with-ca-bundle=${MINGW_PREFIX}/ssl/certs/ca-bundle.crt")
83+
_variant_config+=("--with-librtmp")
7984
elif [ "${_variant}" = "-openssl" ]; then
8085
_variant_config+=("--without-gnutls")
8186
_variant_config+=("--with-ssl")
8287
_variant_config+=("--with-ca-bundle=${MINGW_PREFIX}/ssl/certs/ca-bundle.crt")
8388
_variant_config+=('--with-nghttp2=${MINGW_PREFIX}/')
89+
_variant_config+=("--without-librtmp")
8490
fi
8591
cd "${srcdir}/build-${CARCH}"
8692
export curl_disallow_strtok_r="yes"
@@ -94,7 +100,6 @@ build() {
94100
--enable-static \
95101
--disable-shared \
96102
--enable-sspi \
97-
--without-librtmp \
98103
--without-libidn2 \
99104
--with-winidn \
100105
"${_variant_config[@]}" \

lib/i386/libcurl-dualssl.a

6.13 KB
Binary file not shown.

lib/x64/libcurl-dualssl.a

5.88 KB
Binary file not shown.

readme.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ As of version 7.56 this build supports OpenSSL and WinSSL. This allows us to use
44
native Windows Schannel on Windows 7+, but fall back on OpenSSL on Legacy windows
55
which do not support TLS 1.1 and 1.2 (Vista/2008).
66

7+
__Update:__ backported [upstream patch](https://github.com/curl/curl/commit/5f9e2ca09b57d82baf239039835b3b06dc41bbc5)
8+
to [largebuf.patch](largebuf.patch)
9+
710
Configuration:
811

912
```

0 commit comments

Comments
 (0)