### this file is sourced not run
PKGVER=0.23.9
PKGBUILD=1
PKGARCH=x86_64

# source: BLFS 8.2
TARBALL=p11-kit-$PKGVER.tar.gz
MD5SUM=5fcc836b0b7f7b834ff0998aed2aa9e6
SRC_URL=https://github.com/p11-glue/p11-kit/releases/download/0.23.9/$TARBALL
BUNDLE=

SLACKREQ='' 
SLACKDESC="libp11kit: libp11kit $PKGVER (PKCS #11 library)
libp11kit: 
libp11kit: The p11-kit package provides a way to load and enumerate PKCS #11 (a 
libp11kit: Cryptographic Token Interface Standard) modules.
libp11kit: 
libp11kit: 
libp11kit: 
libp11kit: 
libp11kit: 
libp11kit: 
libp11kit: 
"

### default pkg_download
### default prepare
### default pkg_package
### build
pkg_build() {
	CONFFLAGS="$CONFFLAGS --disable-static --with-trust-paths=/etc/pki/anchors"
	pkg_build_autoconf &&
	pkg_build_slackdesc &&

	# libnssckbi compat
	ln -sfv ./pkcs11/p11-kit-trust.so /usr/$LIBDIR/libnssckbi.so
}

