void-packages/srcpkgs/p11-kit/template
Érico Nogueira 943e49052c p11-kit: fix trust paths.
Some flatpaks broke with the move to meson [1], which doesn't set
trust_paths automatically (the autoconf based build system did, by
checking what files were available on the system - it picked
/etc/ssl/certs/ca-certificates.crt for our build).

p11-kit on the host system matters for flatpaks, as seen in [2].

Thanks to steinex for coming up with the solution. [3] was a fix for the
same issue, but with autoconf.

[1] 7377f185fc
[2] https://github.com/p11-glue/p11-kit/issues/275
[3] 27d5c551b4
2021-05-28 17:25:32 -03:00

46 lines
1.3 KiB
Bash

# Template file for 'p11-kit'
pkgname=p11-kit
version=0.23.22
revision=3
build_style=meson
configure_args="-Dlibffi=enabled -Dsystemd=disabled -Dbash_completion=disabled
-Dgtk_doc=true -Dman=true -Dnls=true -Dtrust_module=enabled
-Dtrust_paths=/etc/ssl/certs/ca-certificates.crt"
hostmakedepends="pkg-config gettext gtk-doc libxslt libtasn1-tools"
# glib-devel for gtk-doc
makedepends="libtasn1-devel libffi-devel glib-devel"
short_desc="Provides a way to load and enumerate PKCS#11 modules"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://github.com/p11-glue/p11-kit"
distfiles="${homepage}/releases/download/${version}/p11-kit-${version}.tar.xz"
checksum=8a8f40153dd5a3f8e7c03e641f8db400133fb2a6a9ab2aee1b6d0cb0495ec6b6
patch_args=-Np1
conf_files="/etc/pkcs11/pkcs11.conf"
if [ "$XBPS_CHECK_PKGS" ]; then
configure_args+=" -Dtest=true"
else
configure_args+=" -Dtest=false"
fi
post_install() {
mv ${DESTDIR}/etc/pkcs11/pkcs11.conf.example \
${DESTDIR}/etc/pkcs11/pkcs11.conf
vlicense COPYING
vcompletion bash-completion/p11-kit bash p11-kit
vcompletion bash-completion/trust bash trust
}
p11-kit-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
vmove usr/share/gtk-doc
}
}