commit 0735912fd4a347e7b0fb124a1403e2c436940848 Author: xhaa123 Date: Thu May 9 11:33:28 2024 +0800 curl 8.7.1-1 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..a524e64 --- /dev/null +++ b/PKGBUILD @@ -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 +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} +}