aports/main/p11-kit/APKBUILD

61 lines
1.5 KiB
Text
Raw Permalink Normal View History

# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
2024-09-11 23:13:50 +02:00
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=p11-kit
2024-07-04 13:36:30 +00:00
pkgver=0.25.5
pkgrel=2
pkgdesc="Library for loading and sharing PKCS#11 modules"
url="https://p11-glue.freedesktop.org/"
arch="all"
2019-09-11 17:16:29 -03:00
license="BSD-3-Clause"
makedepends="meson libtasn1-dev libffi-dev"
2018-04-27 07:38:25 +00:00
subpackages="$pkgname-dev $pkgname-doc $pkgname-trust $pkgname-server"
2020-01-31 00:38:00 +01:00
source="https://github.com/p11-glue/p11-kit/releases/download/$pkgver/p11-kit-$pkgver.tar.xz"
# secfixes:
# 0.23.22-r0:
# - CVE-2020-29361
# - CVE-2020-29362
# - CVE-2020-29363
build() {
abuild-meson \
2022-10-12 17:07:22 +00:00
-Db_lto=true \
2023-06-29 16:14:07 +00:00
-Dbackend_max_links=4 \
-Dlibffi=enabled \
-Dtrust_module=enabled \
-Dtest="$(want_check && echo true || echo false)" \
-Dtrust_paths=/etc/ssl/certs/ca-certificates.crt \
2020-01-31 00:38:00 +01:00
. output
meson compile -C output
}
check() {
meson test --print-errorlogs -C output
}
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
2020-01-31 00:38:00 +01:00
install -Dm644 "$pkgdir"/etc/pkcs11/pkcs11.conf.example -t "$pkgdir"/usr/share/doc/$pkgname
}
2013-04-22 08:22:20 +00:00
trust() {
pkgdesc="System trust module from $pkgname"
2023-06-29 16:14:07 +00:00
amove \
usr/share/p11-kit/modules/p11-kit-trust.module \
usr/lib/pkcs11/p11-kit-trust.so \
usr/bin/trust
2018-04-27 07:38:25 +00:00
}
server() {
pkgdesc="Server and client commands for $pkgname"
2023-06-29 16:14:07 +00:00
amove \
usr/lib/pkcs11/p11-kit-client.so \
usr/libexec/p11-kit/p11-kit-server
2013-04-22 08:22:20 +00:00
}
2021-08-25 08:23:45 -03:00
sha512sums="
2024-07-04 13:36:30 +00:00
177ec6ff5eb891901078306dce2bf3f5c1a0e5c2a8c493bdf5a08ae1ff1240fdf6952961e973c373f80ac3d1d5a9927e07f4da49e4ff92269d992e744889fc94 p11-kit-0.25.5.tar.xz
2021-08-25 08:23:45 -03:00
"