summaryrefslogtreecommitdiff
path: root/system/opensc/opensc.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/opensc/opensc.SlackBuild')
-rw-r--r--system/opensc/opensc.SlackBuild28
1 files changed, 15 insertions, 13 deletions
diff --git a/system/opensc/opensc.SlackBuild b/system/opensc/opensc.SlackBuild
index 202badbf50..8d2fec5c30 100644
--- a/system/opensc/opensc.SlackBuild
+++ b/system/opensc/opensc.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for opensc
-# Copyright 2008-2010 LukenShiro <lukenshiro@ngi.it>
+# Copyright 2008-2011 LukenShiro <lukenshiro@ngi.it>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=opensc
-VERSION=${VERSION:-0.11.13}
+VERSION=${VERSION:-0.12.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -42,7 +42,15 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-DOCFILES="README COPYING NEWS"
+DOCFILES="README COPYING NEWS ChangeLog"
+
+# opensc now supports only one reader subsystem (pcsc-lite or openct)
+OPENCT=${OPENCT:-0} # pcsc-lite is the default, openct disabled
+
+case "$OPENCT" in
+ 0) RDRSUBSYS_flags="--enable-pcsc --disable-openct" ;;
+ *) RDRSUBSYS_flags="--disable-pcsc --enable-openct" ;;
+esac
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
@@ -69,6 +77,7 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
+# --enable-nsplugin and --with-pinentry= are no longer supported.
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -79,11 +88,7 @@ CXXFLAGS="$SLKCFLAGS" \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--datarootdir=/usr/share \
--mandir=/usr/man \
- --enable-pcsc \
- --enable-nsplugin \
- --enable-doc \
- --enable-openct \
- --with-pinentry=/usr/bin/pinentry \
+ $RDRSUBSYS_flags \
--build=$ARCH-slackware-linux
make
@@ -95,15 +100,12 @@ mv $PKG/etc/opensc.conf $PKG/etc/opensc.conf.new
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-( cd $PKG/usr/man
- find . -type f -exec gzip -9 {} \;
- for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
-)
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $(find $PKG/usr/man -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/
cp -a $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README.SBo
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc