[arch-commits] Commit in p11-kit/repos (3 files)

Evangelos Foutras foutrelis at archlinux.org
Wed Apr 8 14:59:48 UTC 2020


    Date: Wednesday, April 8, 2020 @ 14:59:48
  Author: foutrelis
Revision: 379838

archrelease: copy trunk to staging-x86_64

Added:
  p11-kit/repos/staging-x86_64/
  p11-kit/repos/staging-x86_64/PKGBUILD
    (from rev 379837, p11-kit/trunk/PKGBUILD)
  p11-kit/repos/staging-x86_64/p11-kit.install
    (from rev 379837, p11-kit/trunk/p11-kit.install)

-----------------+
 PKGBUILD        |   71 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 p11-kit.install |   14 ++++++++++
 2 files changed, 85 insertions(+)

Copied: p11-kit/repos/staging-x86_64/PKGBUILD (from rev 379837, p11-kit/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2020-04-08 14:59:48 UTC (rev 379838)
@@ -0,0 +1,71 @@
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+# Contributor: Ionut Biru <ibiru at archlinux.org>
+
+pkgbase=p11-kit
+pkgname=(p11-kit libp11-kit)
+pkgver=0.23.20
+pkgrel=4
+pkgdesc="Loads and enumerates PKCS#11 modules"
+url="https://p11-glue.freedesktop.org"
+arch=(x86_64)
+license=(BSD)
+makedepends=(gtk-doc git meson libtasn1 libffi systemd)
+source=("git+https://github.com/p11-glue/p11-kit?signed#tag=$pkgver")
+sha256sums=('SKIP')
+validpgpkeys=('C0F67099B808FB063E2C81117BFB1108D92765AF'  # Stef Walter
+              '462225C3B46F34879FC8496CD605848ED7E69871') # Daiki Ueno
+
+prepare() {
+  cd p11-kit
+}
+
+build() {
+  arch-meson p11-kit build \
+    --buildtype debugoptimized \
+    -D gtk_doc=true \
+    -D man=true \
+    -D trust_paths=/etc/ca-certificates/trust-source:/usr/share/ca-certificates/trust-source
+  ninja -C build
+}
+
+check() {
+  meson test -C build --print-errorlogs
+}
+
+_pick() {
+  local p="$1" f d; shift
+  for f; do
+    d="$srcdir/$p/${f#$pkgdir/}"
+    mkdir -p "$(dirname "$d")"
+    mv "$f" "$d"
+    rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
+  done
+}
+
+package_p11-kit() {
+  depends=("libp11-kit=$pkgver-$pkgrel" systemd libp11-kit.so libsystemd.so)
+  install=p11-kit.install
+
+  DESTDIR="$pkgdir" meson install -C build
+  ln -sr "$pkgdir/usr/bin/update-ca-trust" "$pkgdir/usr/lib/p11-kit/trust-extract-compat"
+
+  # Split libp11-kit
+  _pick lib "$pkgdir"/usr/include
+  _pick lib "$pkgdir"/usr/lib/{p11-kit-proxy.so,libp11-kit.*}
+  _pick lib "$pkgdir"/usr/lib/{pkcs11,pkgconfig}
+  _pick lib "$pkgdir"/usr/share/{locale,p11-kit}
+
+  install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 p11-kit/COPYING
+}
+
+package_libp11-kit() {
+  pkgdesc+=" (library)"
+  depends=(glibc libtasn1 libffi)
+  provides=(libp11-kit.so)
+
+  mv lib/* "$pkgdir"
+
+  install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 p11-kit/COPYING
+}
+
+# vim:set ts=2 sw=2 et:

Copied: p11-kit/repos/staging-x86_64/p11-kit.install (from rev 379837, p11-kit/trunk/p11-kit.install)
===================================================================
--- staging-x86_64/p11-kit.install	                        (rev 0)
+++ staging-x86_64/p11-kit.install	2020-04-08 14:59:48 UTC (rev 379838)
@@ -0,0 +1,14 @@
+post_install() {
+  # Enable socket by default
+  systemctl --global enable p11-kit-server.socket
+}
+
+post_upgrade() {
+  if (( $(vercmp $2 0.23.13-1) < 0)); then
+    systemctl --global enable p11-kit-server.socket
+  fi
+}
+
+pre_remove() {
+  systemctl --global disable p11-kit-server.socket
+}


More information about the arch-commits mailing list