PKGBUILD 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # Maintainer: David P. <megver83@parabola.nu>
  2. # Maintainer (Arch): Florian Pritz <bluewind@xinu.at>
  3. # Contributor (Arch): Christoph Vigano <mail@cvigano.de>
  4. pkgname=lib32-p11-kit
  5. pkgver=0.23.16.1
  6. pkgrel=1
  7. pkgrel+=.nonsystemd1
  8. pkgdesc="Provides a way to load and enumerate PKCS#11 modules (32-bit)"
  9. arch=(x86_64)
  10. url="https://p11-glue.freedesktop.org"
  11. license=(BSD)
  12. depends=(lib32-glibc lib32-libtasn1 lib32-libffi p11-kit)
  13. makedepends=(git lib32-gcc-libs)
  14. source=("git+https://github.com/p11-glue/p11-kit?signed#tag=$pkgver"
  15. 0001-Build-and-install-libnssckbi-p11-kit.so.patch)
  16. sha256sums=('SKIP'
  17. 'a2222e092b2c9ae2d2c344b3268f8f86e7b424973433d49653f72e6c51fa54cf')
  18. validpgpkeys=('C0F67099B808FB063E2C81117BFB1108D92765AF' # Stef Walter
  19. '462225C3B46F34879FC8496CD605848ED7E69871') # Daiki Ueno
  20. prepare() {
  21. cd p11-kit
  22. # Build and install an additional library (libnssckbi-p11-kit.so) which
  23. # is a copy of p11-kit-trust.so but uses the same label for root certs as
  24. # libnssckbi.so ("Builtin Object Token" instead of "Default Trust")
  25. # https://bugs.freedesktop.org/show_bug.cgi?id=66161
  26. patch -Np1 -i ../0001-Build-and-install-libnssckbi-p11-kit.so.patch
  27. NOCONFIGURE=1 ./autogen.sh
  28. }
  29. build() {
  30. cd p11-kit
  31. export CC="gcc -m32"
  32. export CXX="g++ -m32"
  33. export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
  34. ./configure --prefix=/usr \
  35. --libdir=/usr/lib32 \
  36. --sysconfdir=/etc \
  37. --localstatedir=/var \
  38. --libexecdir=/usr/lib \
  39. --disable-doc \
  40. --with-module-path=/usr/lib32/pkcs11 \
  41. --without-systemd \
  42. --with-trust-paths=/etc/ca-certificates/trust-source:/usr/share/ca-certificates/trust-source
  43. make
  44. }
  45. check() {
  46. cd p11-kit
  47. make check
  48. }
  49. package() {
  50. cd p11-kit
  51. make DESTDIR="$pkgdir" install
  52. rm -rf "${pkgdir}"/etc "${pkgdir}"/usr/{bin,include,lib,share}
  53. install -d "$pkgdir/usr/share/licenses"
  54. ln -s p11-kit "$pkgdir/usr/share/licenses/$pkgname"
  55. }
  56. # vim:set ts=2 sw=2 et: