aboutsummaryrefslogtreecommitdiff
path: root/system/pcsc-tools
diff options
context:
space:
mode:
authorGustavo B. Schenkel <gustavo.schenkel@gmail.com>2021-08-03 01:13:22 -0300
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-11-07 02:15:18 +0700
commitc36b5b4a913f84d8b148ec861efb5c576d6c3f65 (patch)
treeb6bd4376ca2d83e0bc47524880a6d85649c74e20 /system/pcsc-tools
parent6e3db913ae06e78b2225606d7cdc76a9f5d24d8e (diff)
system/pcsc-tools: Updated for version 1.5.7
Signed-off-by: Gustavo B. Schenkel <gustavo.schenkel@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/pcsc-tools')
-rw-r--r--system/pcsc-tools/pcsc-tools.SlackBuild40
-rw-r--r--system/pcsc-tools/pcsc-tools.info6
2 files changed, 27 insertions, 19 deletions
diff --git a/system/pcsc-tools/pcsc-tools.SlackBuild b/system/pcsc-tools/pcsc-tools.SlackBuild
index 7f2897176e6eb..920f532b24744 100644
--- a/system/pcsc-tools/pcsc-tools.SlackBuild
+++ b/system/pcsc-tools/pcsc-tools.SlackBuild
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=pcsc-tools
-VERSION=${VERSION:-1.4.27}
+VERSION=${VERSION:-1.5.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +38,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -50,8 +47,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-DOCS="LICENCE README Changelog"
-
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
@@ -72,7 +67,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -81,20 +76,33 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# Make sure that the man pages go to the right place
-sed -i -e's|/share/man|/man|' Makefile
-
-# Use our wanted CFLAGS, in addition to those in the Makefile
-sed -i -e"s/-O2/$SLKCFLAGS/" Makefile
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --disable-static \
+ --build=$ARCH-slackware-linux
make
-make install DESTDIR=$PKG/usr
+make install DESTDIR=$PKG
+
+rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
+
+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
-# Strip pcsc_scan
-find $PKG -name "pcsc_scan" -exec strip --strip-uneeded $PKG 2> /dev/null {} \;
+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 $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ Changelog README \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/system/pcsc-tools/pcsc-tools.info b/system/pcsc-tools/pcsc-tools.info
index a8d16d2f9e2cb..71417f093b67c 100644
--- a/system/pcsc-tools/pcsc-tools.info
+++ b/system/pcsc-tools/pcsc-tools.info
@@ -1,8 +1,8 @@
PRGNAM="pcsc-tools"
-VERSION="1.4.27"
+VERSION="1.5.7"
HOMEPAGE="http://ludovic.rousseau.free.fr/softwares/pcsc-tools/"
-DOWNLOAD="http://ponce.cc/slackware/sources/repo/pcsc-tools-1.4.27.tar.gz"
-MD5SUM="8ed881400d89f89cba13e4d70f524fb3"
+DOWNLOAD="http://ludovic.rousseau.free.fr/softwares/pcsc-tools/pcsc-tools-1.5.7.tar.bz2"
+MD5SUM="ff06894380e9233a5cc20b843f85c31b"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="pcsc-perl perl-gtk2"