2014-05-22 15:24:18 +02:00
|
|
|
# Template file for 'opensc'
|
|
|
|
pkgname=opensc
|
2014-07-14 18:26:12 +02:00
|
|
|
version=0.14.0
|
|
|
|
revision=1
|
2014-05-22 15:24:18 +02:00
|
|
|
build_style=gnu-configure
|
2014-10-27 18:05:31 +01:00
|
|
|
maintainer="Carlo Dormeletti <carloDOTdormelettiATaliceDOTit>"
|
2014-05-22 15:24:18 +02:00
|
|
|
homepage="https://github.com/OpenSC/OpenSC/wiki"
|
|
|
|
license="LGPL-2.1"
|
2014-05-22 17:29:05 +02:00
|
|
|
short_desc="Tools and libraries for smart cards"
|
2014-05-22 17:47:27 +02:00
|
|
|
hostmakedepends="automake libtool pkg-config docbook-xsl libxslt-devel"
|
2014-07-14 18:26:12 +02:00
|
|
|
makedepends="readline-devel pcsclite-devel libressl-devel zlib-devel"
|
2014-05-22 17:29:05 +02:00
|
|
|
configure_args="--enable-man --enable-sm --enable-static=no --enable-doc
|
2014-07-14 18:26:12 +02:00
|
|
|
--with-xsl-stylesheetsdir=/usr/share/xsl/docbook"
|
2014-11-05 12:41:10 +01:00
|
|
|
update_pattern=$pkgname'-\K[\d.]+(?=\.tar.gz)'
|
2014-05-22 15:24:18 +02:00
|
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
|
2014-07-14 18:26:12 +02:00
|
|
|
checksum="facdca215f74d999b286ae246ada8d8fcb97ce58f0a6dd30d8b1c180101e9bf0"
|
2014-05-22 15:24:18 +02:00
|
|
|
conf_files="/etc/opensc.conf"
|
|
|
|
|
2014-05-22 17:47:27 +02:00
|
|
|
pre_configure() {
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
|
|
|
|
2014-05-22 15:24:18 +02:00
|
|
|
opensc-pkcs11_package() {
|
|
|
|
short_desc+=" - pkcs11 library"
|
|
|
|
pkg_install() {
|
2014-05-22 17:29:05 +02:00
|
|
|
vmove "usr/lib/pkcs11"
|
2014-05-22 15:24:18 +02:00
|
|
|
vmove "usr/lib/opensc-pkcs11*"
|
|
|
|
vmove "usr/lib/pkcs11-spy.so"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libopensc_package() {
|
|
|
|
short_desc+=" - library files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libopensc.so*"
|
2014-05-22 17:29:05 +02:00
|
|
|
vmove "usr/lib/libsmm-local.so*"
|
2014-05-22 15:24:18 +02:00
|
|
|
}
|
|
|
|
}
|