# Maintainer: Vincent Grande # Contributor: Daniel Wallace # Contributor: Dave Reisner # Contributor: Angel Velasquez # Contributor: Eric Belanger # Contributor: Lucien Immink # Contributor: Daniel J Griffiths pkgname=lib32-curl-minimal-git _pkgname=curl pkgver=7.73.0 pkgrel=1 pkgdesc="An URL retrieval utility and library (32-bit)" arch=('x86_64') url="https://curl.haxx.se" license=('MIT') provides=(lib32-curl) conflicts=(lib32-curl) depends=('lib32-libidn2' 'lib32-krb5' 'lib32-openssl' 'lib32-libpsl' 'lib32-zlib' 'lib32-zstd' "${_pkgname}" "lib32-brotli") source=("git+https://github.com/curl/curl") sha512sums=('SKIP') pkgver() { cd curl git describe --tags | sed 's/-/+/g' } build() { cd curl export CC="gcc -m32" export CXX="g++ -m32" export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" ./buildconf ./configure \ --prefix=/usr \ --mandir=/usr/share/man \ --disable-dependency-tracking \ --disable-ldap \ --disable-ldaps \ --disable-ipv6 \ --disable-manual \ --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 \ --enable-versioned-symbols \ --enable-threaded-resolver \ --with-gssapi \ --without-libssh \ --without-libssh2 \ --without-librtmp \ --without-libmetalink \ --without-wolfssh \ --without-winssl \ --without-schannel \ --without-darwinssl \ --without-secure-transport \ --without-amissl \ --without-mesalink \ --without-winidn \ --with-random=/dev/urandom \ --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt \ --with-nghttp2 \ --with-nghttp3 \ --with-ngtcp2 \ --with-quiche \ --libdir=/usr/lib32 make } package() { cd curl make DESTDIR="$pkgdir" install rm -rf "${pkgdir}"/usr/{share,bin,include} # license install -d "$pkgdir/usr/share/licenses" ln -s "$_pkgname" "$pkgdir/usr/share/licenses/$pkgname" }