void-packages/srcpkgs/p11-kit/template

55 lines
1.6 KiB
Bash

# Template file for 'p11-kit'
pkgname=p11-kit
version=0.25.3
revision=1
build_style=meson
build_helper="qemu"
configure_args="-Dlibffi=enabled -Dsystemd=disabled -Dbash_completion=disabled
-Dman=true $(vopt_bool gtk_doc gtk_doc) -Dnls=true -Dtrust_module=enabled
-Dtrust_paths=/etc/ssl/certs/ca-certificates.crt
-Dglib_prefix=/usr"
hostmakedepends="pkg-config gettext gtk-doc libxslt libtasn1-tools"
makedepends="libtasn1-devel libffi-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"
changelog="https://raw.githubusercontent.com/p11-glue/p11-kit/master/NEWS"
distfiles="https://github.com/p11-glue/p11-kit/releases/download/${version}/p11-kit-${version}.tar.xz"
checksum=d8ddce1bb7e898986f9d250ccae7c09ce14d82f1009046d202a0eb1b428b2adc
conf_files="/etc/pkcs11/pkcs11.conf"
if [ "$XBPS_CHECK_PKGS" ]; then
configure_args+=" -Dtest=true"
else
configure_args+=" -Dtest=false"
fi
build_options="gtk_doc"
if [ -z "$CROSS_BUILD" ]; then
build_options_default+=" gtk_doc"
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
if [ "$build_option_gtk_doc" ]; then
vmove usr/share/gtk-doc
fi
}
}