| 1 | ; Keep the release branch's backports in their original application order. |
| 2 | defpkgbuild(curl, |
| 3 | #:pkgname, "curl", |
| 4 | #:pkgver, "8.14.1", |
| 5 | #:pkgrel, 1, |
| 6 | #:pkgdesc, "URL transfer library and command-line client", |
| 7 | #:arch, [#:x86-64, #:aarch64], |
| 8 | #:license, "curl", |
| 9 | #:url, "https://curl.se/", |
| 10 | #:depends, ["musl", "brotli", "c-ares", "ca-certificates-bundle", "libidn2", "libpsl", |
| 11 | "nghttp2", "openssl", "zlib", "zstd"], |
| 12 | #:source, ["https://curl.se/download/curl-8.14.1.tar.xz", |
| 13 | "https://raw.githubusercontent.com/alpinelinux/aports/a7de3e63cc8015474a4feadd8bb7c0ecc097b1fa/main/curl/fix-returncode-with-retry.patch", |
| 14 | "https://raw.githubusercontent.com/alpinelinux/aports/a7de3e63cc8015474a4feadd8bb7c0ecc097b1fa/main/curl/CVE-2025-9086.patch", |
| 15 | "https://raw.githubusercontent.com/alpinelinux/aports/a7de3e63cc8015474a4feadd8bb7c0ecc097b1fa/main/curl/CVE-2025-10148.patch", |
| 16 | "https://raw.githubusercontent.com/alpinelinux/aports/a7de3e63cc8015474a4feadd8bb7c0ecc097b1fa/main/curl/CVE-2026-5545.patch", |
| 17 | "https://raw.githubusercontent.com/alpinelinux/aports/a7de3e63cc8015474a4feadd8bb7c0ecc097b1fa/main/curl/CVE-2025-13034.patch", |
| 18 | "https://raw.githubusercontent.com/alpinelinux/aports/a7de3e63cc8015474a4feadd8bb7c0ecc097b1fa/main/curl/CVE-2025-14524.patch", |
| 19 | "https://raw.githubusercontent.com/alpinelinux/aports/a7de3e63cc8015474a4feadd8bb7c0ecc097b1fa/main/curl/CVE-2025-14819.patch", |
| 20 | "https://raw.githubusercontent.com/alpinelinux/aports/a7de3e63cc8015474a4feadd8bb7c0ecc097b1fa/main/curl/CVE-2026-1965_1.patch", |
| 21 | "https://raw.githubusercontent.com/alpinelinux/aports/a7de3e63cc8015474a4feadd8bb7c0ecc097b1fa/main/curl/CVE-2026-1965_2.patch", |
| 22 | "https://raw.githubusercontent.com/alpinelinux/aports/a7de3e63cc8015474a4feadd8bb7c0ecc097b1fa/main/curl/CVE-2026-3783.patch", |
| 23 | "https://raw.githubusercontent.com/alpinelinux/aports/a7de3e63cc8015474a4feadd8bb7c0ecc097b1fa/main/curl/CVE-2026-3784.patch", |
| 24 | "https://raw.githubusercontent.com/alpinelinux/aports/a7de3e63cc8015474a4feadd8bb7c0ecc097b1fa/main/curl/CVE-2026-3805.patch", |
| 25 | "https://raw.githubusercontent.com/alpinelinux/aports/a7de3e63cc8015474a4feadd8bb7c0ecc097b1fa/main/curl/CVE-2026-4873.patch", |
| 26 | "https://raw.githubusercontent.com/alpinelinux/aports/a7de3e63cc8015474a4feadd8bb7c0ecc097b1fa/main/curl/CVE-2026-5773.patch", |
| 27 | "https://raw.githubusercontent.com/alpinelinux/aports/a7de3e63cc8015474a4feadd8bb7c0ecc097b1fa/main/curl/CVE-2026-6253.patch", |
| 28 | "https://raw.githubusercontent.com/alpinelinux/aports/a7de3e63cc8015474a4feadd8bb7c0ecc097b1fa/main/curl/CVE-2026-6276.patch", |
| 29 | "https://raw.githubusercontent.com/alpinelinux/aports/a7de3e63cc8015474a4feadd8bb7c0ecc097b1fa/main/curl/CVE-2026-6429.patch", |
| 30 | "https://raw.githubusercontent.com/alpinelinux/aports/a7de3e63cc8015474a4feadd8bb7c0ecc097b1fa/main/curl/CVE-2026-7168.patch", |
| 31 | "https://raw.githubusercontent.com/alpinelinux/aports/a7de3e63cc8015474a4feadd8bb7c0ecc097b1fa/main/curl/CVE-2026-8286.patch", |
| 32 | "https://raw.githubusercontent.com/alpinelinux/aports/a7de3e63cc8015474a4feadd8bb7c0ecc097b1fa/main/curl/CVE-2026-8924.patch", |
| 33 | "https://raw.githubusercontent.com/alpinelinux/aports/a7de3e63cc8015474a4feadd8bb7c0ecc097b1fa/main/curl/CVE-2026-8927.patch", |
| 34 | "https://raw.githubusercontent.com/alpinelinux/aports/a7de3e63cc8015474a4feadd8bb7c0ecc097b1fa/main/curl/CVE-2026-92392.patch", |
| 35 | "check.py"], |
| 36 | #:sha256sums, ["f4619a1e2474c4bbfedc88a7c2191209c8334b48fa1f4e53fd584cc12e9120dd", |
| 37 | "52cfd68c233b3858eb49b3c93c92648447315b2f3f1db0be308f8af38a46a2c7", |
| 38 | "56039a14d7e329e69dff6480f8515d377ae19ca704553d4030079bfe0473d658", |
| 39 | "4e570f42c4ff86fcaca7a45d3ec4c58f7112833fc99a523f6da288590181dab9", |
| 40 | "b2e58a0d68e496b6871fabfbd2880a9d5110f2755924ceaae89f31d0f0d6cbdc", |
| 41 | "6d3caaf6f401513058902f6ffcc011d0fe173ac61aca0cfe32bacbc9269b1e27", |
| 42 | "ca0c84dd96a3aa033d5b1401d46d1b64b3a8c86663d45573dd2a8e4f832683af", |
| 43 | "024e2b0e9f421fe8d56bd4776469e5bf286b71ec0eef36a4afd6347b7c3e4b8e", |
| 44 | "9aaf4c3eb03649c54e8f8cfbd0a28c5ea786550c06aaeb573109c010d98be65c", |
| 45 | "157bb9a263134dda41945a6ba5398ee274ab3c251a1da611689e407aceda66b9", |
| 46 | "e42284f21a50b1451e650835c0b61a38fdabcb56822af2f1aa66c58ac369b039", |
| 47 | "7bec4e76f12b6fa45b4c96f238fa35fc6efe83afa2f9c70e52f613d164a40bf1", |
| 48 | "3f1728d41f0e51aeb84324660c817a5bc7a856aa919831d406e1a371bb2d1116", |
| 49 | "e7a537702e76a3e9a6fb3eb2954a02da63c8e75bc7bd81a77b59e379364c0a56", |
| 50 | "940ecd7be035314763ef5138a18afe294a9865bde0d0a4becba53c7a1c46d77e", |
| 51 | "da3fa4a7206e852d0aca021781e6bb4349d118e9d53a3ebc391429baeab3a275", |
| 52 | "fdd4049c2cde0daf0db6bdaa4ec9dba5c2d7589497e70ac01b4aaaae894d7e1e", |
| 53 | "375cd321c8e525877993861d32203da2cc8f988294803855e322632ed4443bb2", |
| 54 | "0a61cb538b7651fc83ae2dd5b47d5002bdebd4b63257930e325c7a07444b142d", |
| 55 | "5a666ac0d88bc3ced2ad0a625cb2881ef25785f10a892929ab5f75e469d1d3f7", |
| 56 | "67550b143b7642c10b7db8141daa8868878d75a24ddba8cd9ae73766e3a845cf", |
| 57 | "ba1ffbdacc8ad33571dcce8955145b4f3493eb9830a22d31e74993128140aa45", |
| 58 | "6582de3f4fb0efb897bc7fce0e9e8284cbe3e4b78913a8fa34f9ccc3763b5d10", |
| 59 | "b018041a27101037b9866cfc00f05d8953d301c67d51539b1a9cded89cfdf139"], |
| 60 | #:prepare, fn() { |
| 61 | for-each(fn(file) { |
| 62 | run("patch", "--batch", "-d", "curl-8.14.1", "-p1", "-i", string-append("../", file)) |
| 63 | }, list("fix-returncode-with-retry.patch", "CVE-2025-9086.patch", "CVE-2025-10148.patch", |
| 64 | "CVE-2026-5545.patch", "CVE-2025-13034.patch", "CVE-2025-14524.patch", |
| 65 | "CVE-2025-14819.patch", "CVE-2026-1965_1.patch", "CVE-2026-1965_2.patch", |
| 66 | "CVE-2026-3783.patch", "CVE-2026-3784.patch", "CVE-2026-3805.patch", |
| 67 | "CVE-2026-4873.patch", "CVE-2026-5773.patch", "CVE-2026-6253.patch", |
| 68 | "CVE-2026-6276.patch", "CVE-2026-6429.patch", "CVE-2026-7168.patch", |
| 69 | "CVE-2026-8286.patch", "CVE-2026-8924.patch", "CVE-2026-8927.patch", |
| 70 | "CVE-2026-92392.patch")) |
| 71 | }, |
| 72 | #:build, fn() { |
| 73 | run("vinix-configure", "curl-8.14.1/configure", "--enable-ares", "--enable-ipv6", "--enable-unix-sockets", |
| 74 | "--with-brotli", "--with-zstd", "--with-libidn2", "--with-libpsl", "--with-nghttp2", "--with-openssl", |
| 75 | "--with-ca-bundle=/etc/ssl/cert.pem", "--with-ca-path=/etc/ssl/certs", "--disable-ldap", |
| 76 | "--with-pic", "--enable-websockets", "--without-libssh2") |
| 77 | run("make") |
| 78 | }, |
| 79 | #:check, fn() { |
| 80 | run("python3", "check.py") |
| 81 | }, |
| 82 | #:package, fn() { |
| 83 | run("make", "install", string-append("DESTDIR=", pkgdir())) |
| 84 | run("find", pkgdir(), "-name", "*.la", "-delete") |
| 85 | run("install", "-Dm644", "curl-8.14.1/COPYING", string-append(pkgdir(), "/usr/share/licenses/curl/COPYING")) |
| 86 | }) |
| 87 | |