archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / lib32-p11-kit / trunk / PKGBUILD
blobaf6fb8a23ade28b692f1e06a6a4d2ffb25b44602
1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Florian Pritz <bluewind@xinu.at>
3 # Contributor: Christoph Vigano <mail@cvigano.de>
5 pkgname=lib32-p11-kit
6 pkgver=0.24.1
7 pkgrel=1
8 pkgdesc="Loads and enumerates PKCS#11 modules (32-bit library)"
9 url="https://p11-glue.freedesktop.org"
10 arch=(x86_64)
11 license=(BSD)
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'
17             'SKIP')
18 validpgpkeys=('C0F67099B808FB063E2C81117BFB1108D92765AF'  # Stef Walter
19               '462225C3B46F34879FC8496CD605848ED7E69871') # Daiki Ueno
21 prepare() {
22   cd p11-kit-$pkgver
25 build() {
26   export CC="gcc -m32"
27   export CXX="g++ -m32"
28   export PKG_CONFIG="i686-pc-linux-gnu-pkg-config"
30   arch-meson p11-kit-$pkgver build \
31     --libdir /usr/lib32 \
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
37 check() {
38   meson test -C build --print-errorlogs
41 package() {
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
49 # vim:set sw=2 et: