blob: 8a3ac2dc0eb95cd7d66a1e294978c785f4baa759 (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
# Contributor: drakkan <nicola.murino at gmail dot com>
# Contributor: Andrew Sun <adsun701 at gmail dot com>
# Contributor: ant32 <antreimer at gmail dot com>
_android_arch=x86-64
pkgname=android-${_android_arch}-curl
pkgver=8.6.0
pkgrel=1
arch=('any')
pkgdesc="An URL retrival utility and library (Android ${_android_arch})"
url="https://curl.haxx.se"
license=("MIT")
depends=("android-${_android_arch}-brotli"
"android-${_android_arch}-libidn2"
"android-${_android_arch}-libnghttp2"
"android-${_android_arch}-libnghttp3"
"android-${_android_arch}-libpsl"
"android-${_android_arch}-libssh2"
"android-${_android_arch}-openssl"
"android-${_android_arch}-zstd"
"android-${_android_arch}-zlib")
makedepends=('android-configure')
options=(!strip !buildflags staticlibs !emptydirs)
source=("${url}/download/curl-${pkgver}.tar.bz2"
"0002-nghttp2-static.patch"
"0003-libpsl-static-libs.patch"
"0004-more-static-fixes.patch")
md5sums=('4418e0d94f29d352afafdab445e37a3d'
'08976b11b3e986c43c2ebd8eac36e2fb'
'0d6963bab0b98f8bc7cf8f2f7311e75a'
'98ba4e01c3545650087a4852192ce10e')
prepare() {
cd "${srcdir}/curl-${pkgver}"
source android-env ${_android_arch}
patch -Np1 -i ../0002-nghttp2-static.patch
patch -Np1 -i ../0003-libpsl-static-libs.patch
patch -Np1 -i ../0004-more-static-fixes.patch
autoreconf -vfi
}
build() {
cd "${srcdir}/curl-${pkgver}"
source android-env ${_android_arch}
android-${_android_arch}-configure \
--enable-static \
--enable-shared \
--with-openssl \
--enable-ipv6 \
--with-libidn2 \
--with-libssh2 \
--without-ca-bundle \
--without-random \
--with-libpsl \
--with-brotli \
--with-zstd
make $MAKEFLAGS
}
package() {
cd "${srcdir}/curl-${pkgver}"
source android-env ${_android_arch}
make DESTDIR="$pkgdir" install
rm -r "${pkgdir}/${ANDROID_PREFIX_BIN}/curl"
rm -rf "${pkgdir}/${ANDROID_PREFIX_SHARE}"
${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}"/${ANDROID_PREFIX_LIB}/*.so
${ANDROID_STRIP} -g "$pkgdir"/${ANDROID_PREFIX_LIB}/*.a
}
|