aboutsummaryrefslogtreecommitdiffstats
path: root/main/softhsm/APKBUILD
blob: 6c3d6adcd7a6d7149cb9455874c4decd8c4c9285 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Contributor: Frank Felhoffer <silveraid@hackme.ca>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=softhsm
pkgver=2.6.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"
subpackages="$pkgname-doc"
source="https://dist.opendnssec.org/source/softhsm-$pkgver.tar.gz
	"

build() {
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--with-crypto-backend=botan \
		--with-botan=/usr \
		--with-sqlite3=/usr \
		--with-objectstore-backend-db
	make
}

check() {
	make check
	ldd src/lib/.libs/libsofthsm2.so
}

package() {
	make -j1 DESTDIR="$pkgdir/" install
}

sha512sums="9d70fd05817a9ea4b0c8acad5f9f2a33ce38115414e84e5f43ec433a6f07440ea29c3b81ae5150ee7f324080c4603951406fa22052f4b6dbcc0c4e5cfd3e1723  softhsm-2.6.0.tar.gz"