102 lines
2.9 KiB
Bash
102 lines
2.9 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://git.disroot.org/joborun-pkg/jobcore/src/branch/main/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgbase=p11-kit
|
|
pkgname=(p11-kit libp11-kit) # p11-kit-docs)
|
|
pkgver=0.25.5
|
|
pkgrel=01
|
|
pkgdesc="Loads and enumerates PKCS#11 modules - w/o systemd"
|
|
url="https://p11-glue.freedesktop.org"
|
|
depends=(glibc libtasn1)
|
|
makedepends=(libffi bash-completion gtk-doc meson)
|
|
checkdepends=(gnutls)
|
|
source=(https://github.com/p11-glue/p11-kit/releases/download/$pkgver/p11-kit-$pkgver.tar.xz{,.sig})
|
|
|
|
prepare() {
|
|
cd p11-kit-$pkgver
|
|
|
|
}
|
|
|
|
build() {
|
|
local meson_options=(
|
|
-D gtk_doc=false
|
|
-D man=true
|
|
-D systemd=disabled
|
|
-D trust_paths=/etc/ca-certificates/trust-source:/usr/share/ca-certificates/trust-source
|
|
)
|
|
|
|
arch-meson p11-kit-$pkgver build "${meson_options[@]}"
|
|
meson compile -C build
|
|
}
|
|
|
|
check() {
|
|
meson test -C build --print-errorlogs
|
|
}
|
|
|
|
_pick() {
|
|
local p="$1" f d; shift
|
|
for f; do
|
|
d="$srcdir/$p/${f#$pkgdir/}"
|
|
mkdir -p "$(dirname "$d")"
|
|
mv "$f" "$d"
|
|
rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
|
|
done
|
|
}
|
|
|
|
package_p11-kit() {
|
|
depends=("libp11-kit=$pkgver-$pkgrel" libp11-kit.so)
|
|
# install=p11-kit.install
|
|
|
|
meson install -C build --destdir "$pkgdir"
|
|
ln -srf "$pkgdir/usr/bin/update-ca-trust" "$pkgdir/usr/lib/p11-kit/trust-extract-compat"
|
|
|
|
# Split libp11-kit
|
|
_pick lib "$pkgdir"/usr/include
|
|
_pick lib "$pkgdir"/usr/lib/{p11-kit-proxy.so,libp11-kit.*}
|
|
_pick lib "$pkgdir"/usr/lib/{pkcs11,pkgconfig}
|
|
_pick lib "$pkgdir"/usr/share/p11-kit
|
|
|
|
# _pick doc "$pkgdir"/usr/share/gtk-doc
|
|
|
|
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 p11-kit-$pkgver/COPYING
|
|
}
|
|
|
|
package_libp11-kit() {
|
|
pkgdesc+=" (library)"
|
|
provides=(libp11-kit.so)
|
|
depends=( glibc libffi libtasn1)
|
|
|
|
mv lib/* "$pkgdir"
|
|
|
|
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 p11-kit-$pkgver/COPYING
|
|
}
|
|
|
|
#package_p11-kit-docs() {
|
|
# pkgdesc+=" (documentation)"
|
|
# depends=()
|
|
#
|
|
# mv doc/* "$pkgdir"
|
|
#
|
|
# install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 p11-kit-$pkgver/COPYING
|
|
#}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=(BSD-3-Clause)
|
|
|
|
validpgpkeys=(C0F67099B808FB063E2C81117BFB1108D92765AF # Stef Walter <stef@thewalter.net>
|
|
462225C3B46F34879FC8496CD605848ED7E69871 # Daiki Ueno <ueno@unixuser.org>
|
|
5D46CB0F763405A7053556F47A75A648B3F9220C) # Zoltan Fridrich <zfridric@redhat.com>
|
|
|
|
sha256sums=(04d0a86450cdb1be018f26af6699857171a188ac6d5b8c90786a60854e1198e5 # p11-kit-0.25.5.tar.xz
|
|
b318e9b0d4b8128ebe6eacb0737ece1dd82273f82a97e8577673bbe2e404e0d4) # p11-kit-0.25.5.tar.xz.sig
|
|
|
|
## 30da86cce1da7d71006de4e5cd156b45ad4bfff8cd273757780c5660ff6f02d1 libp11-kit-0.25.5-01-x86_64.pkg.tar.lz
|
|
## 74cc5c9fe5cc01ef3e5f18340ec70ccf1afbc5a240af6c769a2f217328207d7e p11-kit-0.25.5-01-x86_64.pkg.tar.lz
|
|
|