Package Details: cpr 1.10.5-1

Git Clone URL: https://aur.archlinux.org/cpr.git (read-only, click to copy)
Package Base: cpr
Description: C++ Requests: Curl for People, a spiritual port of Python Requests.
Upstream URL: https://github.com/libcpr/cpr
Licenses: MIT
Submitter: zlima12
Maintainer: zlima12 (horror-proton)
Last Packager: horror-proton
Votes: 4
Popularity: 0.026737
First Submitted: 2021-04-22 20:19 (UTC)
Last Updated: 2023-10-14 15:02 (UTC)

Latest Comments

zlima12 commented on 2023-04-02 02:13 (UTC)

horror-proton: I have added you as a co-maintainer. Sorry for my inactivity, I should have updated the package long ago. The change you mentioned below seems reasonable to me; please feel free to add it.

horror-proton commented on 2023-03-29 07:17 (UTC)

According to the CMake package guidelines, something like this would be more reasonable, which would also install CMake files to allow developers to use find_package(cpr).

prepare() {
    cd "$srcdir/cpr-$pkgver"
    cmake -B "$srcdir"/build -DCMAKE_BUILD_TYPE=Release -DCPR_BUILD_TESTS=OFF -DCPR_USE_SYSTEM_CURL=ON
}
build() {
    cmake --build "$srcdir"/build
}
package() {
    cmake --install "$srcdir"/build --prefix "$pkgdir"/usr
}

zlima12 commented on 2022-09-05 17:53 (UTC)

rlmineing_dead: just updated, try building again. Sorry for the delay.

rlmineing_dead commented on 2022-05-22 22:09 (UTC)

this package doesn't build anymore

/home/alice/git-applications/cpr/src/cpr-1.8.1/cpr/session.cpp: In member function ‘void cpr::Session::Impl::SetSslOptions(const cpr::SslOptions&)’:
/home/alice/git-applications/cpr/src/cpr-1.8.1/cpr/session.cpp:495:9: error: ‘curl_blob’ was not declared in this scope
  495 |         curl_blob blob{};
      |         ^~~~~~~~~
/home/alice/git-applications/cpr/src/cpr-1.8.1/cpr/session.cpp:496:9: error: ‘blob’ was not declared in this scope
  496 |         blob.data = &key_blob[0];
      |         ^~~~
In file included from /home/alice/git-applications/cpr/src/cpr-1.8.1/include/cpr/curlholder.h:8,
                 from /home/alice/git-applications/cpr/src/cpr-1.8.1/include/cpr/cookies.h:4,
                 from /home/alice/git-applications/cpr/src/cpr-1.8.1/include/cpr/session.h:13,
                 from /home/alice/git-applications/cpr/src/cpr-1.8.1/cpr/session.cpp:1:
/home/alice/git-applications/cpr/src/cpr-1.8.1/cpr/session.cpp:498:41: error: ‘CURLOPT_SSLKEY_BLOB’ was not declared in this scope; did you mean ‘CURLOPT_SSLKEYTYPE’?
  498 |         curl_easy_setopt(curl_->handle, CURLOPT_SSLKEY_BLOB, &blob);
      |                                         ^~~~~~~~~~~~~~~~~~~
make[2]: *** [cpr/CMakeFiles/cpr.dir/build.make:244: cpr/CMakeFiles/cpr.dir/session.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:116: cpr/CMakeFiles/cpr.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

mortymacs commented on 2022-02-18 20:21 (UTC)

Please change the URL to the new address: https://github.com/libcpr/cpr