diff options
author | LukenShiro <lukenshiro@ngi.it> | 2012-12-28 22:32:41 +0100 |
---|---|---|
committer | Matteo Bernardini <ponce@slackbuilds.org> | 2012-12-28 22:32:58 +0100 |
commit | a6a23d55617c77ec380248448947034c68433e02 (patch) | |
tree | 4530c307bde07553fb4843cf8b3ffcc7b153b883 /system | |
parent | e90260582d001914946a6e655ba68dc65e66e29b (diff) |
system/opensc: Added manpages to the build.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r-- | system/opensc/opensc.SlackBuild | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/system/opensc/opensc.SlackBuild b/system/opensc/opensc.SlackBuild index 0c260e5858178..8890dfb182dc4 100644 --- a/system/opensc/opensc.SlackBuild +++ b/system/opensc/opensc.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for opensc -# Copyright 2008-2011 LukenShiro <lukenshiro@ngi.it> +# Copyright 2008-2013 LukenShiro <lukenshiro@ngi.it> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ PRGNAM=opensc VERSION=${VERSION:-0.12.2} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -41,6 +41,7 @@ PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} DOCFILES="README COPYING NEWS ChangeLog" +XSL_STYLESHEETS_VER=1.76.1 # opensc now supports only one reader subsystem (pcsc-lite or openct) OPENCT=${OPENCT:-0} # pcsc-lite is the default, openct disabled @@ -73,7 +74,11 @@ rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . -chmod -R u+w,go+r-w,a-s . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; # --enable-nsplugin and --with-pinentry= are no longer supported. CFLAGS="$SLKCFLAGS" \ @@ -86,6 +91,8 @@ CXXFLAGS="$SLKCFLAGS" \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --datarootdir=/usr/share \ --mandir=/usr/man \ + --enable-doc \ + --with-xsl-stylesheetsdir=/usr/share/xml/docbook/xsl-stylesheets-${XSL_STYLESHEETS_VER} \ $RDRSUBSYS_flags \ --build=$ARCH-slackware-linux @@ -98,8 +105,8 @@ mv $PKG/etc/opensc.conf $PKG/etc/opensc.conf.new find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -# manpages are not built, as we do not currently have DocBook XSL StyleSheets -rm -rf $PKG/usr/man +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 |