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

Jan Steffens heftig at gemini.archlinux.org
Mon Jan 17 22:04:50 UTC 2022


    Date: Monday, January 17, 2022 @ 22:04:50
  Author: heftig
Revision: 434650

archrelease: copy trunk to testing-x86_64

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

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

Copied: p11-kit/repos/testing-x86_64/PKGBUILD (from rev 434649, p11-kit/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2022-01-17 22:04:50 UTC (rev 434650)
@@ -0,0 +1,71 @@
+# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
+# Contributor: Ionut Biru <ibiru at archlinux.org>
+
+pkgbase=p11-kit
+pkgname=(p11-kit libp11-kit)
+pkgver=0.24.1
+pkgrel=1
+pkgdesc="Loads and enumerates PKCS#11 modules"
+url="https://p11-glue.freedesktop.org"
+arch=(x86_64)
+license=(BSD)
+makedepends=(gtk-doc meson libtasn1 libffi systemd bash-completion)
+source=(https://github.com/p11-glue/p11-kit/releases/download/$pkgver/p11-kit-$pkgver.tar.xz{,.sig})
+sha256sums=('d8be783efd5cd4ae534cee4132338e3f40f182c3205d23b200094ec85faaaef8'
+            'SKIP')
+validpgpkeys=('C0F67099B808FB063E2C81117BFB1108D92765AF'  # Stef Walter
+              '462225C3B46F34879FC8496CD605848ED7E69871') # Daiki Ueno
+
+prepare() {
+  cd p11-kit-$pkgver
+}
+
+build() {
+  arch-meson p11-kit-$pkgver build \
+    -D gtk_doc=true \
+    -D man=true \
+    -D trust_paths=/etc/ca-certificates/trust-source:/usr/share/ca-certificates/trust-source
+  meson compile -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" coreutils libp11-kit.so libsystemd.so)
+  install=p11-kit.install
+
+  meson install -C build --destdir "$pkgdir"
+  ln -srf "$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-$pkgver/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-$pkgver/COPYING
+}
+
+# vim:set sw=2 et:

Copied: p11-kit/repos/testing-x86_64/p11-kit.install (from rev 434649, p11-kit/trunk/p11-kit.install)
===================================================================
--- testing-x86_64/p11-kit.install	                        (rev 0)
+++ testing-x86_64/p11-kit.install	2022-01-17 22:04:50 UTC (rev 434650)
@@ -0,0 +1,23 @@
+_global_units() {
+    local unit=p11-kit-server.socket dir=/etc/systemd/user/sockets.target.wants
+
+    case $1 in
+        enable)
+            mkdir -p $dir
+            ln -sf /usr/lib/systemd/user/$unit $dir/$unit
+            ;;
+        disable)
+            rm -f $dir/$unit
+            rmdir -p --ignore-fail-on-non-empty $dir
+            ;;
+    esac
+}
+
+post_install() {
+  # Enable socket by default
+  _global_units enable
+}
+
+pre_remove() {
+  _global_units disable
+}



More information about the arch-commits mailing list