blob: f7b68fe02452e262417d63d1e322223c2b3acfc2 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=p11-kit
pkgver=0.23.14
pkgrel=0
pkgdesc="Library for loading and sharing PKCS#11 modules"
url="https://p11-glue.freedesktop.org/"
arch="all"
license="BSD"
depends=""
depends_dev=""
makedepends="libtasn1-dev libffi-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-trust $pkgname-server"
source="https://github.com/p11-glue/p11-kit/releases/download/$pkgver/p11-kit-$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver
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
mkdir -p "$pkgdir"/usr/share/doc/$pkgname
mv "${pkgdir}"/etc/pkcs11/pkcs11.conf.example "$pkgdir"/usr/share/doc/$pkgname/
}
trust() {
pkgdesc="System trust module from $pkgname"
mkdir -p "$subpkgdir"/usr/share/p11-kit/modules \
"$subpkgdir"/usr/libexec/p11-kit \
"$subpkgdir"/usr/lib/pkcs11 \
"$subpkgdir"/usr/bin
mv "$pkgdir"/usr/libexec/p11-kit/trust-extract-compat \
"$subpkgdir"/usr/libexec/p11-kit/
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/
mv "$pkgdir"/usr/bin/trust "$subpkgdir"/usr/bin/
}
server() {
pkgdesc="Server and client commands for $pkgname"
mkdir -p "$subpkgdir"/usr/lib/pkcs11 \
"$subpkgdir"/usr/libexec/p11-kit \
"$subpkgdir"/etc/init.d
mv "$pkgdir"/usr/lib/pkcs11/p11-kit-client.so \
"$subpkgdir"/usr/lib/pkcs11
mv "$pkgdir"/usr/libexec/p11-kit/p11-kit-server \
"$subpkgdir"/usr/libexec/p11-kit
}
sha512sums="fc7e7e0745d7f8e5d783a1f38bad9bbe65b56d54897b6ba2c3118a0d912451c2d48dd113a875e7f7bfcff8fbd6b4905472fcd120630661c12029a16d2b13add4 p11-kit-0.23.14.tar.gz"
|