summaryrefslogtreecommitdiffstats
path: root/system/ccid/ccid.SlackBuild
diff options
context:
space:
mode:
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 999a68e061..68f5f9f672 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