🔒 Repository is read-only – file editing is disabled.

recipes/core/p11-kit/PAGBUILD.yaml main

55 linii Raw ← Powrót
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
pkgname: 'p11-kit'
pkgver: '0.26.5'
pkgrel: '1'
pkgdesc: 'Provides a way to load and enumerate PKCS 11 modules.'
url: 'https://p11-glue.freedesktop.org/p11-kit.html'
arch: x86_64
license:
- 'BSD-3-Clause'

depends: []
makedepends:
- meson
- ninja
- libffi
- libtasn1
- 'gtk-doc'
- libxslt
- glib

source:
- 'https://github.com/p11-glue/p11-kit/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.xz'

sha256sums:
- SKIP

build: |
  cd ${pkgname}-${pkgver}
  sed '20,$ d' -i trust/trust-extract-compat.in &&
  cat >> trust/trust-extract-compat.in << "EOF"
  # Copy existing anchor modifications to /etc/ssl/local
  /usr/libexec/make-ca/copy-trust-modifications

  # Generate a new trust store
  /usr/sbin/make-ca -f -g
  EOF

  mkdir p11-build
  cd    p11-build

  meson --prefix=/usr       \
        --buildtype=release \
        -Dtrust_paths=/etc/pki/anchors

  ninja
  DESTDIR=${PKGDIR} ninja install

  ln -s /usr/libexec/p11-kit/trust-extract-compat \
        ${PKGDIR}/usr/bin/update-ca-certificates

  if [ -f ${PKGDIR}/etc/pkcs11/pkcs11.conf.example ]; then
  	mv ${PKGDIR}/etc/pkcs11/pkcs11.conf{.example,}
  fi

package: |
  true