PKGBUILD 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Maintainer: David P. <megver83@parabola.nu>
  2. # Maintainer (Arch): Jan Alexander Steffens (heftig) <heftig@archlinux.org>
  3. # Contributor (Arch): Florian Pritz <bluewind@xinu.at>
  4. # Contributor (Arch): Christoph Vigano <mail@cvigano.de>
  5. pkgname=lib32-p11-kit
  6. pkgver=0.24.0
  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=(git meson lib32-elogind)
  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=('81e6140584f635e4e956a1b93a32239acf3811ff5b2d3a5c6094e94e99d2c685'
  17. 'SKIP')
  18. validpgpkeys=('C0F67099B808FB063E2C81117BFB1108D92765AF' # Stef Walter
  19. '462225C3B46F34879FC8496CD605848ED7E69871') # Daiki Ueno
  20. prepare() {
  21. cd p11-kit-$pkgver
  22. }
  23. build() {
  24. export CC="gcc -m32"
  25. export CXX="g++ -m32"
  26. export PKG_CONFIG="i686-pc-linux-gnu-pkg-config"
  27. arch-meson p11-kit-$pkgver build \
  28. --buildtype debugoptimized \
  29. --libdir /usr/lib32 \
  30. -D bash_completion=disabled \
  31. -D trust_paths=/etc/ca-certificates/trust-source:/usr/share/ca-certificates/trust-source -D systemd=disabled
  32. meson compile -C build
  33. }
  34. check() {
  35. meson test -C build --print-errorlogs
  36. }
  37. package() {
  38. meson install -C build --destdir "$pkgdir"
  39. rm -rf "$pkgdir"/etc "$pkgdir"/usr/{bin,include,lib,share}
  40. install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 p11-kit-$pkgver/COPYING
  41. }
  42. # vim:set ts=2 sw=2 et: