blob: f9e45cfd8c26ca0e0bdb27bb69664933b18fe8c1 (
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
46
47
48
49
|
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer:
pkgname=p11-kit
pkgver=0.23.14
pkgrel=0
pkgdesc="Library for loading and sharing PKCS#11 modules"
url="https://p11-glue.github.io/p11-glue/p11-kit.html"
arch="all"
license="BSD-3-Clause"
depends=""
makedepends="libtasn1-dev libffi-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-trust"
source="https://github.com/p11-glue/p11-kit/releases/download/$pkgver/$pkgname-$pkgver.tar.gz"
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--sysconfdir=/etc \
--prefix=/usr \
--mandir=/usr/share/man \
--with-trust-paths=/etc/ssl/certs/ca-certificates.crt
make
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
trust() {
pkgdesc="System trust module from $pkgname"
mkdir -p "$subpkgdir"/usr/share/p11-kit/modules \
"$subpkgdir"/usr/lib/pkcs11
mv "$pkgdir"/usr/share/p11-kit/modules/p11-kit-trust.module \
"$subpkgdir"/usr/share/p11-kit/modules/
mv "$pkgdir"/usr/lib/pkcs11/p11-kit-trust.so \
"$subpkgdir"/usr/lib/pkcs11/
}
sha512sums="fc7e7e0745d7f8e5d783a1f38bad9bbe65b56d54897b6ba2c3118a0d912451c2d48dd113a875e7f7bfcff8fbd6b4905472fcd120630661c12029a16d2b13add4 p11-kit-0.23.14.tar.gz"
|