Advertisement
patlefort

curl-impersonate-chrome patch

Feb 25th, 2025
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.56 KB | Source Code | 0 0
  1. diff --git a/PKGBUILD b/PKGBUILD
  2. index cfba047..24a0f02 100644
  3. --- a/PKGBUILD
  4. +++ b/PKGBUILD
  5. @@ -1,38 +1,36 @@
  6.  # Maintainer mattf <matheusfillipeag@gmail.com>
  7.  
  8.  pkgname=curl-impersonate-chrome
  9. -pkgver=v0.9.3
  10. +pkgver=0.9.3
  11.  pkgrel=1
  12. +epoch=1
  13.  pkgdesc="A special compilation of curl that makes it impersonate Chrome"
  14.  url="https://github.com/lexiforest/curl-impersonate"
  15.  license=('MIT')
  16.  arch=('x86_64' 'i686' 'aarch64' 'armv7h')
  17.  makedepends=(tar gcc cmake go ninja unzip zlib autoconf automake libtool patch)
  18.  depends=(nss libc++)
  19. -provides=(curl-impersonate-chrome libcurl-impersonate-chrome)
  20. +provides=(libcurl-impersonate-chrome)
  21.  conflicts=(curl-impersonate-bin)
  22.  
  23. -# WORKAROUND The default /etc/makepkg.conf shipped by arch comes with -Werror=format which can't be
  24. -# overriden otherwise and wont let boringssl compile
  25. -options=("!buildflags")
  26. -
  27. source=(
  28. -  "curl-impersonate.tar.gz::https://github.com/lexiforest/curl-impersonate/archive/refs/tags/${pkgver}.tar.gz"
  29. +  "curl-impersonate.tar.gz::https://github.com/lexiforest/curl-impersonate/archive/refs/tags/v${pkgver}.tar.gz"
  30. )
  31.  
  32. md5sums=('1d24ca623d799d613afd55e2d652407e')
  33.  
  34. build () {
  35. -  cd curl-impersonate-${pkgver/v/}
  36. +  export CXXFLAGS+=" -Wno-error=stringop-overflow"
  37. +  cd curl-impersonate-${pkgver}
  38.   autoconf
  39.   mkdir -p build
  40.   cd build
  41.   ../configure --prefix="${pkgdir}/usr"
  42. -  make chrome-build
  43. +  make chrome-build -j1
  44. }
  45.  
  46. package () {
  47.   mkdir -p "${pkgdir}/usr"
  48. -  cd curl-impersonate-${pkgver/v/}/build
  49. +  cd curl-impersonate-${pkgver}/build
  50.   make chrome-install
  51. }
Tags: patch
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement