#Packager: Frédéric Galusik <fredg~at~salixos~dot~org>

pkgname=p11-kit
pkgver=0.13
pkgrel=1fg
#arch=noarch
source=(http://p11-glue.freedesktop.org/releases/$pkgname-$pkgver.tar.gz)
sourcetemplate=http://people.salixos.org/fredg/packages/$pkgname/$pkgver
docs=("news")
url=http://p11-glue.freedesktop.org/p11-kit.html

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"p11-kit (using PKCS#11 to unite crypto libraries)"
"Provides a way to load and enumerate PKCS#11 modules. Provides a "
"standard configuration setup for installing PKCS#11 modules in such a "
"way that they're discoverable."
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	
	./configure --prefix=/usr \
        	--libdir=/usr/lib${LIBDIRSUFFIX} \
		--mandir=/usr/man \
		--docdir=/usr/doc/$pkgname-$pkgver \
		--enable-static=no \
		--sysconfdir=/etc \
		--disable-nls \
		--build=$arch-slackware-linux
	make -j $numjobs || return 1
	make install DESTDIR=$startdir/pkg
}