aboutsummaryrefslogtreecommitdiffstats
path: root/main/softhsm/APKBUILD
blob: ef46d1b00f52e28ce6e553ef4f7186e052a05a77 (plain) (blame)
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
39
40
41
42
43
44
45
# Contributor: Frank Felhoffer <silveraid@hackme.ca>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=softhsm
pkgver=2.5.0
pkgrel=4
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
        74b06622cdcf4b104349f5803adca9443dce3abb.patch
        softhsm-2.5.0-botan_ecb-exception-fix.patch
        "
builddir="$srcdir/$pkgname-$pkgver"

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="a1e686729196dc25591eb3da57c2c8ea8494ed274ba711842b2dcae696f477a202acda13a975b8fb1eb68e8e44a79e839dbbc6ba500cab02ad13072c660752d9  softhsm-2.5.0.tar.gz
08d10a980d66e8b5f5853b460065098c2a2cdcd9f36b9e0971456030e8bd9be424de249ff79b4f7cd53f4b0e4b18053096eb405d31c6a346387e695021ce2eff  74b06622cdcf4b104349f5803adca9443dce3abb.patch
25dc68c404f89936df1d7fcdf5460b8f42fff66f4a76d0e50f139337cb515fac853aa76b0b276cdb9186f2cd78a4099fcfa469629c1531dfa4023fa19c23823b  softhsm-2.5.0-botan_ecb-exception-fix.patch"