@@ -13,23 +13,21 @@ _realname=curl
1313pkgbase=mingw-w64-${_realname}
1414pkgname=" ${MINGW_PACKAGE_PREFIX} -${_realname}${_namesuff} "
1515pkgver=7.56.0
16- pkgrel=2
16+ pkgrel=1
1717pkgdesc=" Command line tool and library for transferring data with URLs. (mingw-w64)"
1818arch=(' any' )
1919url=" https://curl.haxx.se"
2020license=(" MIT" )
2121makedepends=(" ${MINGW_PACKAGE_PREFIX} -gcc" " ${MINGW_PACKAGE_PREFIX} -pkg-config" )
2222depends=(" ${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 )
4038options=(' staticlibs' )
4139source=(" ${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' )
4848validpgpkeys=(' 914C533DF9B2ADA2204F586D78E11C6B279D5C91' # Daniel Stenberg
4949 ' 27EDEAF22F3ABCEB50DB9A125CC908FDB71E12C2'
5050 ' 4461EAF0F8E9097F48AF0555F9FEAFF9D34A1BDB' )
5151
5252prepare () {
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[@]} " \
0 commit comments