blob: 788734869a4319eb54b862d89f98dcdefa358211 (
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
|
# 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=aarch64
pkgname=android-${_android_arch}-curl
pkgver=8.11.0
pkgrel=1
arch=('any')
pkgdesc="An URL retrival utility and library (Android ${_android_arch})"
url="https://curl.haxx.se"
license=('MIT')
groups=('android-curl')
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"
"0004-more-static-fixes.patch")
md5sums=('5ba1f5d144166ea9a5a828c57f7728b0'
'83548784e93f008c64aea899a0905a07'
'1df80f9a2a4026efdb7d93c6fc6394c5')
prepare() {
cd "${srcdir}/curl-${pkgver}"
source android-env ${_android_arch}
patch -Np1 -i ../0002-nghttp2-static.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
}
|