Date: Saturday, December 12, 2020 @ 13:07:30 Author: heftig Revision: 773275
archrelease: copy trunk to multilib-testing-x86_64 Added: lib32-p11-kit/repos/multilib-testing-x86_64/ lib32-p11-kit/repos/multilib-testing-x86_64/PKGBUILD (from rev 773274, lib32-p11-kit/trunk/PKGBUILD) ----------+ PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) Copied: lib32-p11-kit/repos/multilib-testing-x86_64/PKGBUILD (from rev 773274, lib32-p11-kit/trunk/PKGBUILD) =================================================================== --- multilib-testing-x86_64/PKGBUILD (rev 0) +++ multilib-testing-x86_64/PKGBUILD 2020-12-12 13:07:30 UTC (rev 773275) @@ -0,0 +1,50 @@ +# Maintainer: Jan Alexander Steffens (heftig) <hef...@archlinux.org> +# Contributor: Florian Pritz <bluew...@xinu.at> +# Contributor: Christoph Vigano <m...@cvigano.de> + +pkgname=lib32-p11-kit +pkgver=0.23.22 +pkgrel=1 +pkgdesc="Loads and enumerates PKCS#11 modules (32-bit library)" +url="https://p11-glue.freedesktop.org" +arch=(x86_64) +license=(BSD) +depends=(lib32-glibc lib32-libtasn1 lib32-libffi libp11-kit) +makedepends=(git meson lib32-systemd) +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() { + export CC="gcc -m32" + export CXX="g++ -m32" + export PKG_CONFIG="i686-pc-linux-gnu-pkg-config" + + arch-meson p11-kit build \ + --buildtype debugoptimized \ + --libdir /usr/lib32 \ + -D bash_completion=disabled \ + -D trust_paths=/etc/ca-certificates/trust-source:/usr/share/ca-certificates/trust-source + meson compile -C build +} + +check() { + meson test -C build --print-errorlogs +} + +package() { + DESTDIR="$pkgdir" meson install -C build + + rm -rf "$pkgdir"/etc "$pkgdir"/usr/{bin,include,lib,share} + + mkdir -p "$pkgdir/usr/share/licenses" + ln -s libp11-kit "$pkgdir/usr/share/licenses/$pkgname" +} + +# vim:set ts=2 sw=2 et: