APP=p11-kit
VERSION=0.23.20
BUILD=1sml
HOMEPAGE='https://github.com/p11-glue/p11-kit'
DOWNLOAD='https://github.com/p11-glue/p11-kit/archive/refs/tags/0.23.20.tar.gz'
DESC="tools to load and enumerate PKCS#11 modules"
REQUIRES="gcc-libs libffi libtasn1"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  CFLAGS="-D_GNU_SOURCE" \
  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --disable-nls

  make
  make install DESTDIR=$PKG

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
c15954e339c1193cad3f27acb496edfcc397dc671d7213daf9402bc8b5471271520931f54aacd2f4516f6777c1bef055ee721e3c4287c39d67826083b8e5f8aa  p11-kit-0.23.20.tar.lz
"
