PaganOS Luna 0.6.0
PL EN DE
🔒 Repository is read-only – file editing is disabled.

recipes/core/curl/PAGBUILD.yaml main

75 lines Raw ← Back
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
pkgname: curl
pkgver: '8.23.0'
pkgrel: 1
pkgdesc: Utility for transferring files with URL syntax to many protocols
url: 'https://curl.haxx.se'
arch: x86_64
license:
- MIT
depends:
- openssl
- libidn2
- libpsl
- zlib
- zstd
- brotli
- libnghttp2
makedepends:
- openssl
- libidn2
- libpsl
- zlib
- zstd

source:
- 'https://curl.se/ca/cacert.pem'
- 'https://curl.haxx.se/download/${pkgname}-${pkgver}.tar.xz'

sha256sums:
- SKIP
- SKIP

build: |
  cd ${pkgname}-${pkgver}
  ./configure \
    --prefix=/usr \
    --libdir=/usr/lib \
    --with-openssl \
    --with-ca-path=/etc/ssl/certs \
    --with-ca-bundle=/etc/ssl/cacert.pem \
    --enable-versioned-symbols \
    --enable-threaded-resolver \
    --enable-ipv6 \
    --disable-ldap \
    --disable-ldaps \
    --disable-static
  make

package: |
  cd ${pkgname}-${pkgver}
  make DESTDIR=${PKGDIR} install

  # Usuń niepotrzebne pliki
  rm -f ${PKGDIR}/usr/lib/libcurl.la
  rm -f ${PKGDIR}/usr/lib/libcurl.a

  # Dokumentacja
  install -v -d -m755 ${PKGDIR}/usr/share/doc/${pkgname}
  cp -v -R docs/* ${PKGDIR}/usr/share/doc/${pkgname}

  # Licencja
  install -Dm 644 COPYING ${PKGDIR}/usr/share/licenses/${pkgname}/COPYING

  # Certyfikaty CA
  install -Dm 644 ../cacert.pem ${PKGDIR}/etc/ssl/cacert.pem

  # ---- curl-devel: nagłówki + pkgconfig ----
  install -d ${PKGDIR}/usr/include/curl
  install -m 644 include/curl/*.h ${PKGDIR}/usr/include/curl/
  install -Dm 644 libcurl.pc ${PKGDIR}/usr/lib/pkgconfig/libcurl.pc

package_curl-devel: |
  mkdir -p ${PKGDIR}/usr/include/curl
  mkdir -p ${PKGDIR}/usr/lib/pkgconfig
  cp -a ${SRCDIR}/../pkg/curl/usr/include/curl/*.h ${PKGDIR}/usr/include/curl/ 2>/dev/null || true
  cp -a ${SRCDIR}/../pkg/curl/usr/lib/pkgconfig/libcurl.pc ${PKGDIR}/usr/lib/pkgconfig/ 2>/dev/null || true