mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-12 00:24:52 +08:00
35 lines
956 B
Bash
35 lines
956 B
Bash
pkgname=p11-kit
|
|
pkgver=0.22.1
|
|
pkgrel=1
|
|
pkgdesc="Library to work with PKCS#11 modules"
|
|
arch=('x86_64')
|
|
url="http://p11-glue.freedesktop.org"
|
|
license=('BSD')
|
|
depends=('glibc' 'libtasn1' 'libffi')
|
|
source=($url/releases/$pkgname-$pkgver.tar.gz{,.sig})
|
|
md5sums=('4e9bea1106628ffb820bdad24a819fac'
|
|
'SKIP')
|
|
|
|
build() {
|
|
cd $pkgname-$pkgver
|
|
./configure --prefix=/usr --sysconfdir=/etc \
|
|
--with-module-path=/usr/lib/pkcs11 \
|
|
--with-trust-paths=/etc/ca-certificates/trust-source:/usr/share/ca-certificates/trust-source
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd $pkgname-$pkgver
|
|
#not ok 6 /token/not-writable
|
|
# assertion failed (!p11_token_is_writable (token))
|
|
# in test_not_writable() at test-token.c:245
|
|
make check | true
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname-$pkgver
|
|
make DESTDIR="$pkgdir" install
|
|
install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
|
|
|
|
ln -srf "$pkgdir/usr/bin/update-ca-trust" "$pkgdir/usr/lib/p11-kit/trust-extract-compat"
|
|
} |