blob: fab964af4c8d9bea74af2382988a23919ef67e0b (
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
# Maintainer: Vincent Grande <shoober420@gmail.com>
# Contributor: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Piotr Balcerowski <piotr@balcerowski.org>
pkgname=lib32-libcurl-compat-minimal-git
pkgver=7.74.0
pkgrel=1
pkgdesc='An URL retrieval library (without versioned symbols)'
arch=('x86_64')
url='https://curl.haxx.se'
license=('MIT')
depends=('lib32-curl' 'lib32-glibc' 'lib32-libidn2' 'lib32-krb5'
'lib32-libpsl' 'lib32-openssl' 'lib32-zlib'
'lib32-zstd')
optdepends=('libcurl-compat: 64bit support')
provides=(lib32-libcurl-compat)
conflicts=(lib32-libcurl-compat)
options=('strip')
source=(git+https://github.com/curl/curl)
sha512sums=('SKIP')
#validpgpkeys=('27EDEAF22F3ABCEB50DB9A125CC908FDB71E12C2') # Daniel Stenberg
pkgver() {
cd curl
git describe --tags | sed 's/-/+/g'
}
build() {
cd curl
export CC='gcc -m32'
export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
./buildconf
./configure \
--prefix='/usr' \
--libdir='/usr/lib32' \
--disable-ldap \
--disable-ldaps \
--disable-manual \
--disable-versioned-symbols \
--disable-ipv6 \
--enable-threaded-resolver \
--with-gssapi \
--without-libssh2 \
--with-random='/dev/urandom' \
--with-ca-bundle='/etc/ssl/certs/ca-certificates.crt' \
--disable-verbose \
--disable-rtsp \
--disable-ftp \
--disable-file \
--disable-dict \
--disable-telnet \
--disable-tftp \
--disable-pop3 \
--disable-imap \
--disable-smb \
--disable-smtp \
--disable-gopher \
--disable-mqtt \
--disable-ares \
--disable-proxy \
--without-libssh \
--without-librtmp \
--without-libmetalink \
--without-wolfssh \
--without-winssl \
--without-schannel \
--without-darwinssl \
--without-secure-transport \
--without-amissl \
--without-mesalink \
--without-winidn \
--with-nghttp2 \
--with-nghttp3 \
--with-ngtcp2 \
--with-quiche
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make -C lib
}
package() {
cd curl
make -C lib DESTDIR="${pkgdir}" install
mv "${pkgdir}"/usr/lib32/libcurl{,-compat}.so.4.7.0
rm "${pkgdir}"/usr/lib32/libcurl.{a,so}*
for version in 3 4.0.0 4.1.0 4.2.0 4.3.0 4.4.0 4.5.0 4.6.0; do
ln -s libcurl-compat.so.4.7.0 "${pkgdir}"/usr/lib32/libcurl.so.${version}
done
install -dm 755 "${pkgdir}"/usr/share/licenses
ln -s libcurl-compat "${pkgdir}"/usr/share/licenses/lib32-libcurl-compat
}
# vim: ts=2 sw=2 et:
|