aboutsummaryrefslogtreecommitdiffstats
path: root/community/softhsm/APKBUILD
blob: d26426fad871b41d13c2f70d9c31159873247eb1 (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
39
40
41
42
43
44
45
46
47
48
49
# Contributor: Frank Felhoffer <silveraid@hackme.ca>
# Maintainer: tcely <softhsm+aports@tcely.33mail.com>
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"