aboutsummaryrefslogtreecommitdiff
path: root/system/ccid/ccid.SlackBuild
diff options
context:
space:
mode:
authorLukenShiro <lukenshiro@ngi.it>2014-01-07 23:38:40 +0700
committerErik Hanson <erik@slackbuilds.org>2014-01-07 11:14:02 -0600
commitfad9b219179700c1b6ac313f4aa33e6402c2dc91 (patch)
tree72bf47e0d5656160bfc6686d1ca72d54d2350961 /system/ccid/ccid.SlackBuild
parentb5adf3e3679086fb3c88bb4ecec6b6e3da5ce79c (diff)
system/ccid: Updated for version 1.4.14.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/ccid/ccid.SlackBuild')
-rw-r--r--system/ccid/ccid.SlackBuild13
1 files changed, 8 insertions, 5 deletions
diff --git a/system/ccid/ccid.SlackBuild b/system/ccid/ccid.SlackBuild
index 999a68e061ece..68f5f9f6722c7 100644
--- a/system/ccid/ccid.SlackBuild
+++ b/system/ccid/ccid.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for ccid
# Copyright 2008 Andrew Psaltis <ampsaltis@gmail.com>
+# Copyright 2014 LukenShiro, Italy
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -29,7 +30,7 @@
# 05 October 2009 -- Updated to version 1.3.11
PRGNAM=ccid
-VERSION=1.4.13
+VERSION=${VERSION:-1.4.14}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -60,6 +61,8 @@ else
LIBDIRSUFFIX=""
fi
+DOCFILES="AUTHORS COPYING INSTALL README"
+
set -e
rm -rf $PKG $TMP/$PRGNAM-$VERSION
@@ -69,8 +72,8 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root.root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
@@ -97,14 +100,14 @@ mkdir -p $PKG/lib/udev/rules.d
cat src/92_pcscd_ccid.rules > $PKG/lib/udev/rules.d/92_pcscd_ccid.rules
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS COPYING INSTALL README $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+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
cd $PKG