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

# source: BLFS 11.3
TARBALL=p11-kit-$PKGVER.tar.xz
MD5SUM=67b2539bdca6b4bedaeecc12864d2796
SRC_URL=https://github.com/p11-glue/p11-kit/releases/download/$PKGVER/$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: https://p11-glue.github.io/p11-glue/p11-kit.html
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() {
	MESONFLAGS="$MESONFLAGS --buildtype=release -Dtrust_paths=/etc/pki/anchors"
	pkg_build_meson p11-build &&
	pkg_build_slackdesc &&

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

