# SliTaz package receipt.

PACKED_SIZE="204.0K"
UNPACKED_SIZE="1.3M"
PACKAGE="p11-kit"
VERSION="0.23.12"
CATEGORY="security"
LICENSE="BSD"
SHORT_DESC="Library to work with PKCS#11 modules"
MAINTAINER="slaxemulator@gmail.com"
WEB_SITE="https://p11-glue.freedesktop.org/"
LFS="http://www.linuxfromscratch.org/blfs/view/stable/postlfs/p11-kit.html"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/p11-glue/p11-kit/releases/download/$VERSION/$TARBALL"

BUILD_DEPENDS="gettext libtasn1-dev gtk-doc libxslt cacerts libffi-dev libffi glib glib-dev"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure \
		--sysconfdir=/etc \
		--with-module-path=/usr/lib/pkcs11 \
		$CONFIGURE_ARGS && 
	make && make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/lib
	cp -a $install/etc $fs
	cp -a $install/usr/bin $fs/usr
	cp -a $install/usr/lib/*.so* $fs/usr/lib
}
