1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Florian Pritz <bluewind@xinu.at>
3 # Contributor: Christoph Vigano <mail@cvigano.de>
8 pkgdesc="Loads and enumerates PKCS#11 modules (32-bit library)"
9 url="https://p11-glue.freedesktop.org"
12 depends=(lib32-glibc lib32-libtasn1 lib32-libffi libp11-kit)
13 makedepends=(meson lib32-systemd)
14 provides=(libp11-kit.so)
15 source=(https://github.com/p11-glue/p11-kit/releases/download/$pkgver/p11-kit-$pkgver.tar.xz{,.sig})
16 sha256sums=('d8be783efd5cd4ae534cee4132338e3f40f182c3205d23b200094ec85faaaef8'
18 validpgpkeys=('C0F67099B808FB063E2C81117BFB1108D92765AF' # Stef Walter
19 '462225C3B46F34879FC8496CD605848ED7E69871') # Daiki Ueno
28 export PKG_CONFIG="i686-pc-linux-gnu-pkg-config"
30 arch-meson p11-kit-$pkgver build \
32 -D bash_completion=disabled \
33 -D trust_paths=/etc/ca-certificates/trust-source:/usr/share/ca-certificates/trust-source
34 meson compile -C build
38 meson test -C build --print-errorlogs
42 meson install -C build --destdir "$pkgdir"
44 rm -rf "$pkgdir"/etc "$pkgdir"/usr/{bin,include,lib,share}
46 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 p11-kit-$pkgver/COPYING