# Maintainer: PktSurf <smlinux@pktsurf.in>
app=p11-kit
version=0.23.20
build=2sml
homepage="https://github.com/p11-glue/p11-kit"
download="https://github.com/p11-glue/p11-kit/archive/refs/tags/$version.tar.gz"
desc="tools to load and enumerate PKCS#11 modules"
requires="gcc-libs libffi libtasn1"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions
}

build() {
  ./configure \
    --prefix= \
    --without-trust-paths

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

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