summaryrefslogtreecommitdiff
path: root/nonsystemd-multilib/lib32-p11-kit/PKGBUILD
diff options
context:
space:
mode:
authorDavid P <megver83@parabola.nu>2021-06-27 22:52:48 -0400
committerDavid P <megver83@parabola.nu>2021-06-27 22:52:48 -0400
commit419eaa1a81559814a21567ac3752c5801ace9502 (patch)
treeffd7f54b17b3f3a57f5b2d7ca086f1d58c69a9f9 /nonsystemd-multilib/lib32-p11-kit/PKGBUILD
parent2d0a61da13c3c085f7521e7a39d6d10e1581ff35 (diff)
downloadabslibre-419eaa1a81559814a21567ac3752c5801ace9502.tar.gz
abslibre-419eaa1a81559814a21567ac3752c5801ace9502.tar.bz2
abslibre-419eaa1a81559814a21567ac3752c5801ace9502.zip
updpkg: nonsystemd-multilib/lib32-p11-kit 0.24.0-1
Signed-off-by: David P <megver83@parabola.nu>
Diffstat (limited to 'nonsystemd-multilib/lib32-p11-kit/PKGBUILD')
-rw-r--r--nonsystemd-multilib/lib32-p11-kit/PKGBUILD65
1 files changed, 24 insertions, 41 deletions
diff --git a/nonsystemd-multilib/lib32-p11-kit/PKGBUILD b/nonsystemd-multilib/lib32-p11-kit/PKGBUILD
index f1d32d26e..42454e260 100644
--- a/nonsystemd-multilib/lib32-p11-kit/PKGBUILD
+++ b/nonsystemd-multilib/lib32-p11-kit/PKGBUILD
@@ -1,68 +1,51 @@
# Maintainer: David P. <megver83@parabola.nu>
-# Maintainer (Arch): Florian Pritz <bluewind@xinu.at>
+# Maintainer (Arch): Jan Alexander Steffens (heftig) <heftig@archlinux.org>
+# Contributor (Arch): Florian Pritz <bluewind@xinu.at>
# Contributor (Arch): Christoph Vigano <mail@cvigano.de>
pkgname=lib32-p11-kit
-pkgver=0.23.16.1
+pkgver=0.24.0
pkgrel=1
-pkgrel+=.nonsystemd1
-pkgdesc="Provides a way to load and enumerate PKCS#11 modules (32-bit)"
-arch=(x86_64)
+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 p11-kit)
-makedepends=(git lib32-gcc-libs)
-source=("git+https://github.com/p11-glue/p11-kit?signed#tag=$pkgver"
- 0001-Build-and-install-libnssckbi-p11-kit.so.patch)
-sha256sums=('SKIP'
- 'a2222e092b2c9ae2d2c344b3268f8f86e7b424973433d49653f72e6c51fa54cf')
+depends=(lib32-glibc lib32-libtasn1 lib32-libffi libp11-kit)
+makedepends=(git meson lib32-elogind)
+provides=(libp11-kit.so)
+source=(https://github.com/p11-glue/p11-kit/releases/download/$pkgver/p11-kit-$pkgver.tar.xz{,.sig})
+sha256sums=('81e6140584f635e4e956a1b93a32239acf3811ff5b2d3a5c6094e94e99d2c685'
+ 'SKIP')
validpgpkeys=('C0F67099B808FB063E2C81117BFB1108D92765AF' # Stef Walter
'462225C3B46F34879FC8496CD605848ED7E69871') # Daiki Ueno
prepare() {
- cd p11-kit
-
- # Build and install an additional library (libnssckbi-p11-kit.so) which
- # is a copy of p11-kit-trust.so but uses the same label for root certs as
- # libnssckbi.so ("Builtin Object Token" instead of "Default Trust")
- # https://bugs.freedesktop.org/show_bug.cgi?id=66161
- patch -Np1 -i ../0001-Build-and-install-libnssckbi-p11-kit.so.patch
-
- NOCONFIGURE=1 ./autogen.sh
+ cd p11-kit-$pkgver
}
build() {
- cd p11-kit
-
export CC="gcc -m32"
export CXX="g++ -m32"
- export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
-
- ./configure --prefix=/usr \
- --libdir=/usr/lib32 \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --libexecdir=/usr/lib \
- --disable-doc \
- --with-module-path=/usr/lib32/pkcs11 \
- --without-systemd \
- --with-trust-paths=/etc/ca-certificates/trust-source:/usr/share/ca-certificates/trust-source
- make
+ export PKG_CONFIG="i686-pc-linux-gnu-pkg-config"
+
+ arch-meson p11-kit-$pkgver build \
+ --buildtype debugoptimized \
+ --libdir /usr/lib32 \
+ -D bash_completion=disabled \
+ -D trust_paths=/etc/ca-certificates/trust-source:/usr/share/ca-certificates/trust-source -D systemd=disabled
+ meson compile -C build
}
check() {
- cd p11-kit
- make check
+ meson test -C build --print-errorlogs
}
package() {
- cd p11-kit
- make DESTDIR="$pkgdir" install
+ meson install -C build --destdir "$pkgdir"
- rm -rf "${pkgdir}"/etc "${pkgdir}"/usr/{bin,include,lib,share}
+ rm -rf "$pkgdir"/etc "$pkgdir"/usr/{bin,include,lib,share}
- install -d "$pkgdir/usr/share/licenses"
- ln -s p11-kit "$pkgdir/usr/share/licenses/$pkgname"
+ install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 p11-kit-$pkgver/COPYING
}
# vim:set ts=2 sw=2 et: