diff --git a/srcpkgs/p11-kit/template b/srcpkgs/p11-kit/template index e886816f48..290c4620a0 100644 --- a/srcpkgs/p11-kit/template +++ b/srcpkgs/p11-kit/template @@ -1,25 +1,30 @@ # Template file for 'p11-kit' pkgname=p11-kit -version=0.23.20 +version=0.23.21 revision=1 build_style=gnu-configure configure_args="--with-module-path=/usr/lib/pkcs11" -hostmakedepends="automake libtool pkg-config gettext-devel" -makedepends="libtasn1-devel libffi-devel" +hostmakedepends="automake libtool pkg-config" +makedepends="gettext-devel libtasn1-devel libffi-devel" short_desc="Provides a way to load and enumerate PKCS#11 modules" maintainer="Orphaned " license="BSD-3-Clause" homepage="https://github.com/p11-glue/p11-kit" distfiles="${homepage}/releases/download/${version}/p11-kit-${version}.tar.xz" -checksum=14d86024c3dfd6b967d9bc0b4ec7b2973014fe7423481f4d230a1a63b8aa6104 +checksum=f1baa493f05ca0d867f06bcb54cbb5cdb28c756db07207b6e18de18a87b10627 conf_files="/etc/pkcs11/pkcs11.conf" +if [ "$CROSS_BUILD" ]; then + hostmakedepends+=" gettext-devel" +fi + pre_configure() { NOCONFIGURE=1 autoreconf -fi } post_install() { - mv ${DESTDIR}/etc/pkcs11/pkcs11.conf.example ${DESTDIR}/etc/pkcs11/pkcs11.conf + mv ${DESTDIR}/etc/pkcs11/pkcs11.conf.example \ + ${DESTDIR}/etc/pkcs11/pkcs11.conf vlicense COPYING }