diff options
author | Vincent Grande | 2021-01-04 02:39:40 -0500 |
---|---|---|
committer | Vincent Grande | 2021-01-04 02:39:40 -0500 |
commit | e68166a24e5fc63342b3e42d091b2c01367f7b72 (patch) | |
tree | aaf820e5de268e7cc45e95a88f12fae95e0178db | |
download | aur-e68166a24e5fc63342b3e42d091b2c01367f7b72.tar.gz |
initial upload
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | PKGBUILD | 91 |
2 files changed, 115 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3b4bd9283772 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,24 @@ +pkgbase = lib32-libcurl-compat-minimal-git + pkgdesc = An URL retrieval library (without versioned symbols) + pkgver = 7.74.0 + pkgrel = 1 + url = https://curl.haxx.se + arch = x86_64 + license = MIT + depends = lib32-curl + depends = lib32-glibc + depends = lib32-libidn2 + depends = lib32-krb5 + depends = lib32-libpsl + depends = lib32-openssl + depends = lib32-zlib + depends = lib32-zstd + depends = libcurl-compat + provides = lib32-libcurl-compat + conflicts = lib32-libcurl-compat + options = strip + source = git+https://github.com/curl/curl + sha512sums = SKIP + +pkgname = lib32-libcurl-compat-minimal-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..83c087718bc3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,91 @@ +# 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' 'libcurl-compat') +provides=(lib32-libcurl-compat) +conflicts=(lib32-libcurl-compat) +options=('strip') +source=(git+https://github.com/curl/curl) +sha512sums=('SKIP') +#validpgpkeys=('27EDEAF22F3ABCEB50DB9A125CC908FDB71E12C2') # Daniel Stenberg + +build() { + cd curl + + export CC='gcc -m32' + export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' + + ./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: |