# Contributor: Frank Felhoffer # Maintainer: tcely pkgname=softhsm pkgver=2.5.0 pkgrel=0 pkgdesc="cryptographic store accessible through a PKCS #11" url="https://www.opendnssec.org/softhsm/" arch="all" license="BSD-2-Clause" depends="sqlite" checkdepends="cppunit-dev" makedepends="autoconf automake botan-dev libtool p11-kit-dev sqlite-dev" install="" subpackages="$pkgname-doc" source="https://dist.opendnssec.org/source/$pkgname-$pkgver.tar.gz softhsm-2.5.0-botan_ecb-exception-fix.patch" builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --with-crypto-backend=botan \ --with-botan=/usr \ --with-sqlite3=/usr \ --with-objectstore-backend-db make } check() { cd "$builddir" make check } package() { cd "$builddir" make -j1 DESTDIR="$pkgdir/" install } sha256sums="92aa56cf45e25892326e98b851c44de9cac8559e208720e579bf8e2cd1c132b2 softhsm-2.5.0.tar.gz ea369cc09a63955a346967041fea7e79438cc6a4f064c7a93a9bdc1b263c6af2 softhsm-2.5.0-botan_ecb-exception-fix.patch" sha512sums="a1e686729196dc25591eb3da57c2c8ea8494ed274ba711842b2dcae696f477a202acda13a975b8fb1eb68e8e44a79e839dbbc6ba500cab02ad13072c660752d9 softhsm-2.5.0.tar.gz 25dc68c404f89936df1d7fcdf5460b8f42fff66f4a76d0e50f139337cb515fac853aa76b0b276cdb9186f2cd78a4099fcfa469629c1531dfa4023fa19c23823b softhsm-2.5.0-botan_ecb-exception-fix.patch"