summaryrefslogtreecommitdiff
path: root/nonsystemd/p11-kit/PKGBUILD
blob: 4d9e37e632df9db61c1e18f1cedcc51ae13a4c5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Maintainer: David P. <megver83@parabola.nu>
# Maintainer (Arch): Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor (Arch): Ionut Biru <ibiru@archlinux.org>

# parabola changes and rationale:
# remove 'systemd' dependency for [nonsystemd]

pkgname=p11-kit
pkgver=0.23.20
pkgrel=2
pkgrel+=.nonsystemd1
pkgdesc="Provides a way to load and enumerate PKCS#11 modules"
arch=(x86_64 i686 armv7h)
url="https://p11-glue.freedesktop.org"
license=(BSD3)
depends=(glibc libtasn1 libffi)
makedepends=(gtk-doc git meson)
provides=(libp11-kit.so)
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 systemd=disabled \
    -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
}

package() {
  DESTDIR="$pkgdir" meson install -C build
  install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 p11-kit/COPYING
  ln -sr "$pkgdir/usr/bin/update-ca-trust" "$pkgdir/usr/lib/p11-kit/trust-extract-compat"
}

# vim:set ts=2 sw=2 et: