makedepends=(nss)

description="A library that simplifies the interaction with PKCS11 providers for end-user"
url="https://github.com/OpenSC/pkcs11-helper"

packager="Great-OS Team"
maintainer="Great-OS Team"

name="pkcs11-helper"
version="1.31.0"
release=1

source=(https://github.com/OpenSC/pkcs11-helper/releases/download/pkcs11-helper-$version/pkcs11-helper-$version.tar.bz2)

build() {

    cd $name-$version

    libtoolize
    aclocal
    autoheader
    automake --add-missing

    autoreconf -v

    ./configure --prefix=/usr

    make
    make DESTDIR="$PKG" install;

    mkdir -p "$PKG"/usr/share/licenses/$name-$version/
    install -D -m0644 COPYING* "$PKG"/usr/share/licenses/$name-$version/
}
