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

# 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="libp11kit32: libp11kit32 $PKGVER (PKCS #11 library)
libp11kit32: 
libp11kit32: The p11-kit package provides a way to load and enumerate PKCS #11 (a 
libp11kit32: Cryptographic Token Interface Standard) modules.
libp11kit32: 
libp11kit32: This contains 32-bit version of the library.
libp11kit32: 
libp11kit32: 
libp11kit32: 
libp11kit32: 
libp11kit32: 
"

### default pkg_download
### default prepare

### package - only collect the libraries
pkg_package() {
	rm -rf bin sbin usr/bin usr/sbin usr/include usr/share etc usr/libexec
}

### 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
}

