Package Details: libcurl-impersonate-bin 1.0.0-5

Git Clone URL: https://aur.archlinux.org/libcurl-impersonate-bin.git (read-only, click to copy)
Package Base: libcurl-impersonate-bin
Description: Series of patches that make curl requests look like Chrome
Upstream URL: https://github.com/lexiforest/curl-impersonate
Licenses: MIT
Conflicts: curl-impersonate
Provides: libcurl-impersonate, libcurl-impersonate-chrome
Submitter: mattf
Maintainer: mattf
Last Packager: mattf
Votes: 3
Popularity: 0.34
First Submitted: 2022-07-16 02:21 (UTC)
Last Updated: 2025-05-20 06:26 (UTC)

Latest Comments

1 2 Next › Last »

Neurognostic commented on 2025-05-20 02:52 (UTC) (edited on 2025-05-20 02:54 (UTC) by Neurognostic)

Also, please add ${pkgname%-bin} or libcurl-impersonate to the provides and conflicts arrays.

Neurognostic commented on 2025-05-19 22:13 (UTC) (edited on 2025-05-19 22:20 (UTC) by Neurognostic)

Can you please also provide a symlink to an unversioned .so for libcurl-impersonate.so and a major versioned .so for libcurl-impersonate.so.4?

That way we can configure python-curl-cffi to link it instead of the *-chrome name.

Nebulosa commented on 2025-05-08 11:37 (UTC) (edited on 2025-05-08 11:38 (UTC) by Nebulosa)

Here's my version of PKGBUILD.

Works perfectly with yt-dlp and python-curl-cffi

Not sure about firefox support, so I removed information about it. Also fixed warnings and some errors from namcap checking

zer0def commented on 2025-05-07 07:43 (UTC) (edited on 2025-05-07 07:47 (UTC) by zer0def)

Why are you stomping static libs and causing conflicts with upstream packages like, for example, zlib? They're not necessary for running the .so.

diff --git a/PKGBUILD b/PKGBUILD
index 3dc3f92..61d85f8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -26,9 +26,6 @@ md5sums_armv7h=('9521ccbf2eb32c6925f5524b0254c6f6')

 package () {
   mkdir -p "${pkgdir}/usr/lib/"
-  for lib in $(find -L . -maxdepth 1 -type f -name "lib*" -iname "lib*" ! -name "*.tar.gz")
-  do
-    cp -a "${lib}" "${pkgdir}/usr/lib/"
-  done
+  find -L -type f -iname "lib*.so*" -print0 | xargs -0r -I@ -- cp -a "@" "${pkgdir}/usr/lib/"
   chown -R root:root "${pkgdir}/usr/lib/"
 }

Pulec commented on 2025-05-06 21:33 (UTC)

Ah yes, let's remove the tar.gz before trying to cp it... https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=libcurl-impersonate-bin#n29

Swap those lines, please. Also, cp is not happy with glob, so the correct package should be:

package () {
  mkdir -p "${pkgdir}/usr/lib/"
  cp -a libcurl-impersonate_x86_64.tar.gz "${pkgdir}/usr/lib/"
  rm libcurl-impersonate*.tar.gz
  chown -R root:root "${pkgdir}/usr/lib/"
}

Neurognostic commented on 2025-05-06 15:15 (UTC)

Why upgrade to a release candidate anyways? We should stick to stable releases unless something is broken.

Lili1228 commented on 2025-05-06 06:44 (UTC)

Doesn't build, the filenames changed and there's no libcurl-impersonate-chrome.* anymore.

mattf commented on 2024-03-10 12:49 (UTC)

Thanks for the comment @gesh

UPDATE: ignore the below suggestion, TIL install resolves symlinks, making it unsuitable for copying shared libs like this https://stackoverflow.com/a/39295609

As @cspr mentioned, had to change from install to cp

Did update description, added new architeture armv7h and fixed the duplication.