curl 8.7.1-1

This commit is contained in:
xhaa123 2024-05-09 11:33:28 +08:00
commit 0735912fd4

42
PKGBUILD Normal file
View File

@ -0,0 +1,42 @@
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: Future Linux Team <future_linux@163.com>
pkgname=curl
pkgver=8.7.1
pkgrel=1
pkgdesc="command line tool and library for transferring data with URLs"
arch=('x86_64')
url="https://curl.se/"
license=('MIT')
depends=('zlib' 'zstd' 'libpsl' 'ca-certificates')
source=(https://curl.se/download/${pkgname}-${pkgver}.tar.xz)
sha256sums=(6fea2aac6a4610fbd0400afb0bcddbe7258a64c63f1f68e5855ebc0c659710cd)
build() {
cd ${pkgname}-${pkgver}
${CONFIGURE} \
--disable-static \
--with-openssl \
--enable-threaded-resolver \
--with-ca-path=/etc/ssl/certs
make
}
package() {
cd ${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
find docs \( -name Makefile\* -o \
-name \*.1 -o \
-name \*.3 -o \
-name CMakeLists.txt \) -delete
install -vdm755 ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}
cp -v -R docs -T ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}
}