testing/rdrview: upgrade to 0.1.2

This commit is contained in:
Sergiy Stupar 2024-06-09 13:04:10 +03:00 committed by Celeste
parent 19279aa84b
commit 28b60be86e
2 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
# Contributor: Sergiy Stupar <owner@sestolab.pp.ua>
# Maintainer: Sergiy Stupar <owner@sestolab.pp.ua>
pkgname=rdrview
pkgver=0.1.1
pkgver=0.1.2
pkgrel=0
pkgdesc="Command line tool to extract the main content from a webpage"
url="https://github.com/eafer/rdrview"
@ -23,6 +23,6 @@ package() {
}
sha512sums="
49a3f2f7ce1937ff4fdad67823763ab5ac57d1a9dce71ac05701a7c22454da989758c74b87f81bf9f07704690be3435d740ae33a8510b8579e76068b69a6119d rdrview-0.1.1.tar.gz
6890f2b7b90251d2fe5479668defa911f769e35c136b818c4cc44821d429c284d8ef1b6d781f898ee6caf4ba3c34f440647a96f486dc0c23bbc8c93c848bff65 curl-7.85.0-CURLOPT_PROTOCOLS-deprecation.patch
85ba2dea88c67f6dd82c272003e993f6a7afb374f2ed3e1ddc72013c880fa9b7ccabc803e64ea4d16f15bc8fe077cea7cccab97bd1db59bf0760f88b0223fcd1 rdrview-0.1.2.tar.gz
d6365e45ed754d1a404f6a832153961fabfeb63b82c2a66a5c20a49f3adac77a1d018465963d2cfe13798b6d2b0ab09805fa0a36761aedde9297d81edaf1f51b curl-7.85.0-CURLOPT_PROTOCOLS-deprecation.patch
"

View File

@ -12,11 +12,11 @@
fatal();
/* I don't expect any other protocols, so be safe */
- protocols = CURLPROTO_HTTP | CURLPROTO_HTTPS;
- protocols = CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_FILE;
+ #if CURL_AT_LEAST_VERSION(7, 85, 0)
+ if (curl_easy_setopt(curl, CURLOPT_PROTOCOLS_STR, "HTTPS,HTTP"))
+ if (curl_easy_setopt(curl, CURLOPT_PROTOCOLS_STR, "HTTP,HTTPS,FILE"))
+ #else
+ long protocols = CURLPROTO_HTTP | CURLPROTO_HTTPS;
+ long protocols = CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_FILE;
if (curl_easy_setopt(curl, CURLOPT_PROTOCOLS, protocols))
+ #endif
fatal();