blob: 8f5cdbe73b0464577fadd5579d92c95b510f2da2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Maintainer mattf <matheusfillipeag@gmail.com>
pkgname=curl-impersonate-chrome
pkgver=v0.6.1
pkgrel=1
pkgdesc="A special compilation of curl that makes it impersonate Chrome"
url="https://github.com/lwthiker/curl-impersonate"
license=('MIT')
arch=('x86_64' 'i686' 'aarch64' 'armv7h')
makedepends=(tar gcc cmake go ninja unzip zlib autoconf automake libtool patch)
depends=(nss)
provides=(curl-impersonate-chrome libcurl-impersonate-chrome)
# WORKAROUND The default /etc/makepkg.conf shipped by arch comes with -Werror=format which can't be
# overriden otherwise and wont let boringssl compile
options=("!buildflags")
source=(
"curl-impersonate.tar.gz::https://github.com/lwthiker/curl-impersonate/archive/refs/tags/${pkgver}.tar.gz"
)
md5sums=('2f4183e25a8cc41f015913dbec2cb414')
build () {
cd curl-impersonate-${pkgver/v/}
autoconf
mkdir -p build
cd build
../configure --prefix="${pkgdir}/usr"
make chrome-build
}
package () {
mkdir -p "${pkgdir}/usr"
cd curl-impersonate-${pkgver/v/}/build
make chrome-install
}
|