curl 8.10.1-1
This commit is contained in:
parent
3754ff16be
commit
d909b86685
154
PKGBUILD
154
PKGBUILD
@ -4,42 +4,144 @@
|
|||||||
# then please put 'unknown'.
|
# then please put 'unknown'.
|
||||||
|
|
||||||
# Maintainer: Future Linux Team <future_linux@163.com>
|
# Maintainer: Future Linux Team <future_linux@163.com>
|
||||||
pkgname=curl
|
pkgname=(curl libcurl-compat libcurl-gnutls)
|
||||||
pkgver=8.7.1
|
pkgbase=curl
|
||||||
pkgrel=2
|
pkgver=8.10.1
|
||||||
|
pkgrel=1
|
||||||
pkgdesc="command line tool and library for transferring data with URLs"
|
pkgdesc="command line tool and library for transferring data with URLs"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="https://curl.se/"
|
url="https://curl.se/"
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
depends=('zlib' 'zstd' 'libpsl' 'ca-certificates' 'brotli' 'krb5' 'libidn2' 'libnghttp2' 'libssh2')
|
depends=(
|
||||||
source=(https://curl.se/download/${pkgname}-${pkgver}.tar.xz)
|
'zlib'
|
||||||
sha256sums=(6fea2aac6a4610fbd0400afb0bcddbe7258a64c63f1f68e5855ebc0c659710cd)
|
'zstd'
|
||||||
|
'libpsl'
|
||||||
|
'ca-certificates'
|
||||||
|
'brotli'
|
||||||
|
'krb5'
|
||||||
|
'libidn2'
|
||||||
|
'libnghttp2'
|
||||||
|
'libnghttp3'
|
||||||
|
'libssh2'
|
||||||
|
)
|
||||||
|
makedepends=('patchelf')
|
||||||
|
source=(https://curl.se/download/${pkgbase}-${pkgver}.tar.xz)
|
||||||
|
sha256sums=(73a4b0e99596a09fa5924a4fb7e4b995a85fda0d18a2c02ab9cf134bebce04ee)
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cd ${pkgbase}-${pkgver}
|
||||||
|
|
||||||
|
mkdir build-curl{,-compat,-gnutls}
|
||||||
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd ${pkgname}-${pkgver}
|
cd ${pkgbase}-${pkgver}
|
||||||
|
|
||||||
${CONFIGURE} \
|
local _configure_options=(
|
||||||
--disable-static \
|
--mandir=/usr/share/man
|
||||||
--with-openssl \
|
--disable-ldap
|
||||||
--enable-ipv6 \
|
--disable-ldaps
|
||||||
--with-gssapi \
|
--disable-manual
|
||||||
--with-libssh2 \
|
--enable-ipv6
|
||||||
--enable-threaded-resolver \
|
--enable-threaded-resolver
|
||||||
--with-ca-path=/etc/ssl/certs
|
--enable-websockets
|
||||||
|
--with-gssapi
|
||||||
|
--with-libssh2
|
||||||
|
--with-random=/dev/urandom
|
||||||
|
)
|
||||||
|
|
||||||
make
|
|
||||||
|
# build curl
|
||||||
|
(
|
||||||
|
cd build-curl
|
||||||
|
|
||||||
|
${BUILD_CONFIGURE} \
|
||||||
|
"${_configure_options[@]}" \
|
||||||
|
--enable-versioned-symbols \
|
||||||
|
--with-fish-functions-dir=/usr/share/fish/vendor_completions.d/ \
|
||||||
|
--with-openssl \
|
||||||
|
--with-openssl-quic \
|
||||||
|
--with-ca-path=/etc/ssl/certs \
|
||||||
|
--with-zsh-functions-dir=/usr/share/zsh/site-functions/
|
||||||
|
|
||||||
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
||||||
|
make
|
||||||
|
)
|
||||||
|
|
||||||
|
# build libcurl-compat
|
||||||
|
(
|
||||||
|
cd build-curl-compat
|
||||||
|
|
||||||
|
${BUILD_CONFIGURE} \
|
||||||
|
"${_configure_options[@]}" \
|
||||||
|
--disable-versioned-symbols \
|
||||||
|
--with-openssl \
|
||||||
|
--with-openssl-quic \
|
||||||
|
--with-ca-path=/etc/ssl/certs
|
||||||
|
|
||||||
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
||||||
|
make -C lib
|
||||||
|
|
||||||
|
patchelf --set-soname 'libcurl-compat.so.4' ./lib/.libs/libcurl.so
|
||||||
|
)
|
||||||
|
|
||||||
|
# build libcurl-gnutls
|
||||||
|
(
|
||||||
|
cd build-curl-gnutls
|
||||||
|
|
||||||
|
${BUILD_CONFIGURE} \
|
||||||
|
"${_configure_options[@]}" \
|
||||||
|
--disable-versioned-symbols \
|
||||||
|
--with-gnutls \
|
||||||
|
--without-openssl \
|
||||||
|
--with-ca-bundle=/etc/pki/tls/certs/ca-bundle.crt
|
||||||
|
|
||||||
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
||||||
|
make -C lib
|
||||||
|
|
||||||
|
patchelf --set-soname 'libcurl-gnutls.so.4' ./lib/.libs/libcurl.so
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package_curl() {
|
||||||
cd ${pkgname}-${pkgver}
|
depends+=('openssl')
|
||||||
|
|
||||||
make DESTDIR=${pkgdir} install
|
cd ${pkgbase}-${pkgver}/build-curl
|
||||||
|
|
||||||
find docs \( -name Makefile\* -o \
|
make DESTDIR=${pkgdir} install
|
||||||
-name \*.1 -o \
|
make -C scripts DESTDIR=${pkgdir} install
|
||||||
-name \*.3 -o \
|
}
|
||||||
-name CMakeLists.txt \) -delete
|
|
||||||
|
package_libcurl-compat() {
|
||||||
install -vdm755 ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}
|
pkgdesc='command line tool and library for transferring data with URLs (no versioned symbols)'
|
||||||
cp -v -R docs -T ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}
|
depends=('curl')
|
||||||
|
|
||||||
|
cd ${pkgbase}-${pkgver}/build-curl-compat
|
||||||
|
|
||||||
|
make -C lib DESTDIR=${pkgdir} install
|
||||||
|
|
||||||
|
mv ${pkgdir}/usr/lib64/libcurl{,-compat}.so.4.8.0
|
||||||
|
rm ${pkgdir}/usr/lib64/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 4.7.0; do
|
||||||
|
ln -s libcurl-compat.so.4.8.0 ${pkgdir}/usr/lib64/libcurl.so.${version}
|
||||||
|
ln -s libcurl-compat.so.4.8.0 ${pkgdir}/usr/lib64/libcurl-compat.so.${version}
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
package_libcurl-gnutls() {
|
||||||
|
pkgdesc='command line tool and library for transferring data with URLs (no versioned symbols, linked against gnutls)'
|
||||||
|
depends=('curl' 'gnutls')
|
||||||
|
|
||||||
|
cd ${pkgbase}-${pkgver}/build-curl-gnutls
|
||||||
|
|
||||||
|
make -C lib DESTDIR=${pkgdir} install
|
||||||
|
|
||||||
|
mv ${pkgdir}/usr/lib64/libcurl{,-gnutls}.so.4.8.0
|
||||||
|
rm ${pkgdir}/usr/lib64/libcurl.{a,so}*
|
||||||
|
ln -s libcurl-gnutls.so.4 ${pkgdir}/usr/lib64/libcurl-gnutls.so
|
||||||
|
|
||||||
|
for version in 3 4 4.0.0 4.1.0 4.2.0 4.3.0 4.4.0 4.5.0 4.6.0 4.7.0; do
|
||||||
|
ln -s libcurl-gnutls.so.4.8.0 ${pkgdir}/usr/lib64/libcurl-gnutls.so.${version}
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user