Files
pkcs11-helper/PKGBUILD
2025-05-22 12:59:59 +02:00

44 lines
1.1 KiB
Bash

# Maintainer:
# Contributor: Stanislaw Datskevich <me a nek0 net>
# Contributor: Gregor Robinson <gregor@fiatflux.co.uk>
# Contributor: Martin Perner <martin dot perner at gmail dot com>
pkgname=pkcs11-helper
pkgver=1.30.0
pkgrel=2
pkgdesc='A library that simplifies the interaction with PKCS11 providers for end-user applications using a simple API and optional OpenSSL engine'
arch=('x86_64')
url='https://github.com/OpenSC/pkcs11-helper'
license=('GPL' 'BSD')
depends=('gnutls' 'nss' 'openssl')
makedepends=('git')
provides=('libpkcs11-helper.so')
source=("git+https://github.com/OpenSC/${pkgname}#tag=${pkgname}-${pkgver}")
sha256sums=('9ad2b74ec2604fa41f87be143b375e82db72a954f99edf8df8ad684ea84f9adf')
prepare() {
cd "${pkgname}/"
libtoolize
aclocal
autoheader
automake --add-missing
autoreconf -v
}
build() {
cd "${pkgname}/"
./configure \
--prefix=/usr
make
}
package() {
cd "${pkgname}/"
make DESTDIR="${pkgdir}" install
mkdir -p "${pkgdir}"/usr/share/licenses/${pkgname}/
install -D -m0644 COPYING* "${pkgdir}"/usr/share/licenses/${pkgname}/
}