diff --git a/CHECKSUMS.md5 b/CHECKSUMS.md5
index 698e5a2..21a3617 100644
--- a/CHECKSUMS.md5
+++ b/CHECKSUMS.md5
@@ -10,10 +10,10 @@ tail +13 CHECKSUMS.md5 | md5sum --check | less
/pub/gnu, or at any GNU mirror site.
MD5 message digest Filename
-eba4da735be692c8d4d9b033c019339e ./ChangeLog.rss
-9f03aa4322146f1e2d93a02cf8e2ecb6 ./ChangeLog.txt
-89f08b9043df6906c862df3ae73feed6 ./ChangeLog.txt.gz
-9f1d5cc176f6b14cf076761fb1597d2c ./FILELIST.TXT
+efd2055166cd57f98bad08ee8e539d22 ./ChangeLog.rss
+dd50969bbadea9d8521e065347ec170b ./ChangeLog.txt
+2eecf12b1e58258afe4ab43908eac4cd ./ChangeLog.txt.gz
+eb4e302f24d6dca479dcc93305a8fec4 ./FILELIST.TXT
7f4bffeb686cc5fd6056bd404dda08d7 ./GPG-KEY
2c3b99a5f766872c0f974d9fa036f462 ./MANIFEST.bz2
929e7c4ff15161d2fcba2057ec2a2f3a ./NetworkManager-fortisslvpn/HEADER.txt
@@ -28,8 +28,8 @@ eba4da735be692c8d4d9b033c019339e ./ChangeLog.rss
862766d751cd6bf0a92e6162bd329186 ./NetworkManager-fortisslvpn/pkg64/current/NetworkManager-fortisslvpn-1.2.10-x86_64-1_lem.tgz.asc
d65495fb9b09ee9b0ede6c5903119dde ./NetworkManager-fortisslvpn/pkg64/current/NetworkManager-fortisslvpn-1.2.10-x86_64-1_lem.tgz.md5
10f078f71cb5fa957784abc1c53a70d4 ./NetworkManager-fortisslvpn/pkg64/current/NetworkManager-fortisslvpn-1.2.10-x86_64-1_lem.txt
-53d0a2bb6f13a051bb6452c7625f3d43 ./PACKAGES.TXT
-5a3126499d885a4d5608bf130a33276d ./PACKAGES.TXT.gz
+4b42e432c0aaf0187526745081723351 ./PACKAGES.TXT
+2c4e3a252a14b6b51c58fc6a38317a42 ./PACKAGES.TXT.gz
c816a86246d3cc161cf2e869d16131bd ./audit/HEADER.txt
c816a86246d3cc161cf2e869d16131bd ./audit/README
29eb321fa3b3c679ba8e4ae4b36a3809 ./audit/build/README
@@ -293,6 +293,11 @@ dd1352ffbb6411fce02d63bcfcee3722 ./openfortivpn/pkg64/current/openfortivpn-1.14
9cb5325aebd0f4c7e180787555403062 ./openfortivpn/pkg64/current/openfortivpn-1.14.1-x86_64-1_lem.tgz.asc
2eb15c22da6d9d409a883c96af72697c ./openfortivpn/pkg64/current/openfortivpn-1.14.1-x86_64-1_lem.tgz.md5
ef3d4f98bc8b66a4eec1d33ca8aa05ca ./openfortivpn/pkg64/current/openfortivpn-1.14.1-x86_64-1_lem.txt
+5a116ba4f6482f839326435c7381be13 ./opensc/build/README
+246fc4cd8cb82e331750ec6f75269fbc ./opensc/build/doinst.sh
+6707c778f8e3187d6d884c7c07d744a1 ./opensc/build/opensc.SlackBuild
+545ad7d8d52465b358f3eee7e9baa3df ./opensc/build/opensc.info
+29296d53bf6fd091f64fa2c4c974eda9 ./opensc/build/slack-desc
476fa4195f756416c4cf69edf2c61966 ./osinfo-db-tools/HEADER.txt
476fa4195f756416c4cf69edf2c61966 ./osinfo-db-tools/README
16f1affa5fcbf66ca9e8f093e0530f98 ./osinfo-db-tools/build/README
diff --git a/CHECKSUMS.md5.asc b/CHECKSUMS.md5.asc
index 8958c7b..915e636 100644
--- a/CHECKSUMS.md5.asc
+++ b/CHECKSUMS.md5.asc
@@ -1,17 +1,17 @@
-----BEGIN PGP SIGNATURE-----
-iQJNBAABCgA3FiEEm8dazQnvu0U1Gdmc9s+lqZ57WVcFAmCNzykZHGd6YW11ZGlv
-QGxpYnJlbWV4Lm9yZy5teAAKCRD2z6WpnntZVzeaEACZ0izzO90aW0EnXt3ANMre
-E1s2a0bREZEJ7ZX1KmhT334AlZwO/hf/A2gypyR0ToRPMGL36kBwVcfwRuBl5kRt
-eLS1BY5grLablN9wcJ+g2gkYpMyt+QE0NAlfgtpjmdGUbOioerC8cQD+Wr05hVjX
-e3Znt75z35omC0F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KXYHwvc7p
+xd5JVnDzsudHhTqqlnfyvrZoTWKEp6eiqnP9v+JIlJ+Z0d1Y36nVsza+Z+ZQo4fz
+aR10d2ykg18/347h6o2/bq+c51KDRd5LCf97bLxSlXe/9QTMZme1DGGE8xf+Njj/
+/JRHXdUIFaOJU7Oa/X9Ejkdi7rk+AkJAT6mjwyg/36USk3/hb3t7aGj5zE7aYmrS
+Qq4dZE3jiyiCrd5iq+vlwbfxz6GqF2319h3Q57wmLtpluEHQMbd/Sjq8HwSBcNXy
+bvSLrjG8UnY7ybgf2Zg4Sg==
+=QsUo
-----END PGP SIGNATURE-----
diff --git a/CHECKSUMS.md5.gz b/CHECKSUMS.md5.gz
index 2c71440..031080e 100644
Binary files a/CHECKSUMS.md5.gz and b/CHECKSUMS.md5.gz differ
diff --git a/CHECKSUMS.md5.gz.asc b/CHECKSUMS.md5.gz.asc
index a6cb0ff..adea749 100644
--- a/CHECKSUMS.md5.gz.asc
+++ b/CHECKSUMS.md5.gz.asc
@@ -1,17 +1,17 @@
-----BEGIN PGP SIGNATURE-----
-iQJNBAABCgA3FiEEm8dazQnvu0U1Gdmc9s+lqZ57WVcFAmCNzykZHGd6YW11ZGlv
-QGxpYnJlbWV4Lm9yZy5teAAKCRD2z6WpnntZV4HuD/9eTAwWlwBq9+e69cEbbGVy
-8eH6ZfCLKce3xAivdCrgr9ZCavE/fRU5OcoN/HwlXI/YJ+5t09QbCXXkdqpoao/W
-wXklRok9RENnqef2z/w9yr4m+jUTrrSEA8WZAmP3EejenlghxCFBXIu7mWZWxoc7
-xhOh8ZYJ6kvk2zD5N2iCi8gweFfzJlH2EkkhXd0mxrmn2LV0MFdB44lUtwhP9fcQ
-0u63y/ykAAG9m0I1Q1YvSh7emlT8si7NIAYwa7/RetwlZyghzMCPNOHnXLgLULsQ
-qbJJvoa4WbR87GRhCvV0YLkdO0/gLtVUDAiPtt8INkxRBDRs1LMiTEIkvqUxRD2r
-Y5IjecsHQ9QNSuhHMkDb+DuyeN00WO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g+NXzFxY/mjqM1H/lcV+a4Lu9tHUQA2Mq+UXDcrRSphBnUwzaw4a+xZB0dGMBKJM
+yp1dTxgKtHEfcAReJD2Vzg==
+=+sq1
-----END PGP SIGNATURE-----
diff --git a/ChangeLog.rss b/ChangeLog.rss
index 8754aee..008303e 100644
--- a/ChangeLog.rss
+++ b/ChangeLog.rss
@@ -11,10 +11,21 @@
Repositorio de software para Slackare Linux proporcionado por Libre Expresión México
en-us
urn:uuid:f735159c-86bd-11ea-9d48-04d4c453db33
-Sat, 1 May 2021 21:58:50 GMT
-Sat, 1 May 2021 21:58:59 GMT
+Sat, 1 May 2021 22:25:52 GMT
+Sat, 1 May 2021 22:26:01 GMT
gen_repos_files.sh v 1.98
-
+Sat, 1 May 2021 22:25:52 GMT
+https://mirror.slackware.mx/libremex/slackbuilds/ChangeLog.txt
+Sat, 1 May 2021 22:25:52 GMT
+20210501172552
+
+
+opensc: Nuevo
+]]>
+
+
+-
Sat, 1 May 2021 21:58:50 GMT
https://mirror.slackware.mx/libremex/slackbuilds/ChangeLog.txt
Sat, 1 May 2021 21:58:50 GMT
@@ -190,16 +201,5 @@ numactl: Asumir el mantenimiento
]]>
--
-Sat, 1 May 2021 16:56:47 GMT
-https://mirror.slackware.mx/libremex/slackbuilds/ChangeLog.txt
-Sat, 1 May 2021 16:56:47 GMT
-20210501115647
-
-
-numactl: Nuevo
-]]>
-
-
diff --git a/ChangeLog.txt b/ChangeLog.txt
index f645c77..681c22e 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -1,3 +1,7 @@
++--------------------------+
+Sat May 1 22:25:52 UTC 2021
+opensc: Nuevo
+
+--------------------------+
Sat May 1 21:58:50 UTC 2021
softhsm: Agregar paquete
diff --git a/ChangeLog.txt.gz b/ChangeLog.txt.gz
index 94a32c5..d2ee562 100644
Binary files a/ChangeLog.txt.gz and b/ChangeLog.txt.gz differ
diff --git a/FILELIST.TXT b/FILELIST.TXT
index bea8309..9221f15 100644
--- a/FILELIST.TXT
+++ b/FILELIST.TXT
@@ -1,4 +1,4 @@
-Sat May 1 21:58:50 UTC 2021
+Sat May 1 22:25:52 UTC 2021
Here is the file list for https://mirror.slackware.mx/libremex/slackbuilds ,
maintained by Gerardo Zamudio .
@@ -6,17 +6,17 @@ If you are using a mirror site and find missing or extra files
in the subdirectories, please have the archive administrator
refresh the mirror.
-drwxr-xr-x 43 1000 100 4096 2021-05-01 16:59 .
--rw-r--r-- 1 1000 100 41731 2021-05-01 16:55 ./CHECKSUMS.md5
--rw-r--r-- 1 1000 100 870 2021-05-01 16:55 ./CHECKSUMS.md5.asc
--rw-r--r-- 1 1000 100 12758 2021-05-01 16:55 ./CHECKSUMS.md5.gz
--rw-r--r-- 1 1000 100 870 2021-05-01 16:55 ./CHECKSUMS.md5.gz.asc
--rw-r--r-- 1 1000 100 6240 2021-05-01 16:58 ./ChangeLog.rss
--rw-r--r-- 1 1000 100 15282 2021-05-01 16:58 ./ChangeLog.txt
--rw-r--r-- 1 1000 100 2164 2021-05-01 16:59 ./ChangeLog.txt.gz
--rw-r--r-- 1 1000 100 311 2021-05-01 16:59 ./FILELIST.TXT
+drwxr-xr-x 44 1000 100 4096 2021-05-01 17:26 .
+-rw-r--r-- 1 1000 100 42345 2021-05-01 16:59 ./CHECKSUMS.md5
+-rw-r--r-- 1 1000 100 870 2021-05-01 16:59 ./CHECKSUMS.md5.asc
+-rw-r--r-- 1 1000 100 12941 2021-05-01 16:59 ./CHECKSUMS.md5.gz
+-rw-r--r-- 1 1000 100 870 2021-05-01 16:59 ./CHECKSUMS.md5.gz.asc
+-rw-r--r-- 1 1000 100 6239 2021-05-01 17:26 ./ChangeLog.rss
+-rw-r--r-- 1 1000 100 15355 2021-05-01 17:26 ./ChangeLog.txt
+-rw-r--r-- 1 1000 100 2177 2021-05-01 17:26 ./ChangeLog.txt.gz
+-rw-r--r-- 1 1000 100 311 2021-05-01 17:26 ./FILELIST.TXT
-rw-r--r-- 1 1000 100 6217 2020-05-23 23:52 ./GPG-KEY
--rw-r--r-- 1 1000 100 46684 2021-05-01 16:59 ./MANIFEST.bz2
+-rw-r--r-- 1 1000 100 46684 2021-05-01 17:26 ./MANIFEST.bz2
drwxr-xr-x 4 1000 100 4096 2020-05-23 23:54 ./NetworkManager-fortisslvpn
-rw-r--r-- 1 1000 100 981 2020-05-23 23:54 ./NetworkManager-fortisslvpn/HEADER.txt
-rw-r--r-- 1 1000 100 981 2020-05-23 23:54 ./NetworkManager-fortisslvpn/README
@@ -33,8 +33,8 @@ drwxr-xr-x 2 1000 100 4096 2020-05-23 19:03 ./NetworkManager-fortisslvpn/pk
-rw-r--r-- 1 1000 100 870 2020-05-23 19:03 ./NetworkManager-fortisslvpn/pkg64/current/NetworkManager-fortisslvpn-1.2.10-x86_64-1_lem.tgz.asc
-rw-r--r-- 1 1000 100 85 2020-05-23 19:03 ./NetworkManager-fortisslvpn/pkg64/current/NetworkManager-fortisslvpn-1.2.10-x86_64-1_lem.tgz.md5
-rw-r--r-- 1 1000 100 474 2020-05-23 19:03 ./NetworkManager-fortisslvpn/pkg64/current/NetworkManager-fortisslvpn-1.2.10-x86_64-1_lem.txt
--rw-r--r-- 1 1000 100 27591 2021-05-01 16:59 ./PACKAGES.TXT
--rw-r--r-- 1 1000 100 6812 2021-05-01 16:59 ./PACKAGES.TXT.gz
+-rw-r--r-- 1 1000 100 27591 2021-05-01 17:26 ./PACKAGES.TXT
+-rw-r--r-- 1 1000 100 6812 2021-05-01 17:26 ./PACKAGES.TXT.gz
drwxr-xr-x 4 1000 100 4096 2021-04-25 04:28 ./audit
-rw-r--r-- 1 1000 100 884 2021-04-25 04:28 ./audit/HEADER.txt
-rw-r--r-- 1 1000 100 884 2021-04-25 04:28 ./audit/README
@@ -378,6 +378,15 @@ drwxr-xr-x 2 1000 100 4096 2020-05-23 22:26 ./openfortivpn/pkg64/current
-rw-r--r-- 1 1000 100 870 2020-05-23 22:26 ./openfortivpn/pkg64/current/openfortivpn-1.14.1-x86_64-1_lem.tgz.asc
-rw-r--r-- 1 1000 100 71 2020-05-23 22:26 ./openfortivpn/pkg64/current/openfortivpn-1.14.1-x86_64-1_lem.tgz.md5
-rw-r--r-- 1 1000 100 448 2020-05-23 22:26 ./openfortivpn/pkg64/current/openfortivpn-1.14.1-x86_64-1_lem.txt
+drwxr-xr-x 4 1000 100 4096 2021-05-01 17:23 ./opensc
+drwxr-xr-x 2 1000 100 4096 2021-05-01 17:25 ./opensc/build
+-rw-r--r-- 1 1000 100 1139 2021-05-01 11:50 ./opensc/build/README
+-rw-r--r-- 1 1000 100 375 2021-05-01 11:50 ./opensc/build/doinst.sh
+-rw-r--r-- 1 1000 100 3916 2021-05-01 11:50 ./opensc/build/opensc.SlackBuild
+-rw-r--r-- 1 1000 100 333 2021-05-01 11:50 ./opensc/build/opensc.info
+-rw-r--r-- 1 1000 100 1168 2021-05-01 11:50 ./opensc/build/slack-desc
+drwxr-xr-x 3 1000 100 4096 2021-05-01 17:23 ./opensc/pkg64
+drwxr-xr-x 2 1000 100 4096 2021-05-01 17:23 ./opensc/pkg64/current
drwxr-xr-x 4 1000 100 4096 2020-05-25 19:10 ./osinfo-db
drwxr-xr-x 4 1000 100 4096 2020-05-25 19:10 ./osinfo-db-tools
-rw-r--r-- 1 1000 100 895 2020-05-23 23:52 ./osinfo-db-tools/HEADER.txt
diff --git a/PACKAGES.TXT b/PACKAGES.TXT
index 7c612ff..4d7e106 100644
--- a/PACKAGES.TXT
+++ b/PACKAGES.TXT
@@ -1,4 +1,4 @@
-PACKAGES.TXT; Sat May 1 21:58:50 UTC 2021
+PACKAGES.TXT; Sat May 1 22:25:52 UTC 2021
PACKAGE NAME: NetworkManager-fortisslvpn-1.2.10-x86_64-1_lem.tgz
PACKAGE MIRROR: https://mirror.slackware.mx/libremex/slackbuilds
diff --git a/PACKAGES.TXT.gz b/PACKAGES.TXT.gz
index 1245051..243bd63 100644
Binary files a/PACKAGES.TXT.gz and b/PACKAGES.TXT.gz differ
diff --git a/opensc/build/README b/opensc/build/README
new file mode 100644
index 0000000..ccbd4d2
--- /dev/null
+++ b/opensc/build/README
@@ -0,0 +1,22 @@
+SmartCard utilities/libraries for PKCS#11/15 compatible cards
+
+This package provides a set of libraries and utilities to access smart
+cards. Its main focus is on cards that support cryptographic operations,
+and facilitate their use in security applications such as mail encryption,
+authentication, and digital signature. OpenSC implements the PKCS#11
+API so applications supporting this API such as Mozilla Firefox and
+Thunderbird can use it. OpenSC implements the PKCS#15 standard and aims
+to be compatible with every software that does so, too.
+
+You may need to edit /etc/opensc.conf in order to use a particular backend
+and smartcard.
+
+Beware! Smartcards have usually a limited number of times you may try a
+wrong PIN/PUK combination before they become inoperable/permanently
+blocked. You have been warned!
+
+Since version 0.12.0, only one reader subsystem can be used and compiled
+in at the same time. The PCSC-LITE subsystem is used by default and it is
+suitable for most smartcards. If you need the OPENCT subsystem instead,
+you have to pass "OPENCT=1" to the script when building and have the
+optional dependency openct installed.
diff --git a/opensc/build/doinst.sh b/opensc/build/doinst.sh
new file mode 100644
index 0000000..92ce19f
--- /dev/null
+++ b/opensc/build/doinst.sh
@@ -0,0 +1,14 @@
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+config etc/opensc.conf.new
diff --git a/opensc/build/opensc.SlackBuild b/opensc/build/opensc.SlackBuild
new file mode 100644
index 0000000..48c2d05
--- /dev/null
+++ b/opensc/build/opensc.SlackBuild
@@ -0,0 +1,123 @@
+#!/bin/sh
+
+# Slackware build script for opensc
+
+# Copyright 2008-2015 LukenShiro, Italy
+# Copyright 2018-2021 Matteo Bernardini , Pisa, Italy
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=opensc
+VERSION=${VERSION:-0.21.0}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+DOCFILES="README COPYING NEWS"
+XSL_STYLESHEETS_VER=$(export LS_OPTIONS='' ; ls -1 /usr/share/xml/docbook/ | grep xsl-stylesheets- | cut -d- -f3)
+
+# 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" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+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 666 -o -perm 664 -o -perm 640 -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" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --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 \
+ --enable-sm \
+ --enable-static=no \
+ --build=$ARCH-slackware-linux
+
+make
+make install DESTDIR=$PKG
+
+# Don't clobber the config file
+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
+
+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
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/opensc/build/opensc.info b/opensc/build/opensc.info
new file mode 100644
index 0000000..61f3364
--- /dev/null
+++ b/opensc/build/opensc.info
@@ -0,0 +1,10 @@
+PRGNAM="opensc"
+VERSION="0.21.0"
+HOMEPAGE="https://github.com/OpenSC/OpenSC/wiki/"
+DOWNLOAD="https://github.com/OpenSC/OpenSC/releases/download/0.21.0/opensc-0.21.0.tar.gz"
+MD5SUM="d9f32e065ada3303c349cb5b54cd6e37"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="pcsc-lite"
+MAINTAINER="Matteo Bernardini"
+EMAIL="ponce@slackbuilds.org"
diff --git a/opensc/build/slack-desc b/opensc/build/slack-desc
new file mode 100644
index 0000000..ada9f73
--- /dev/null
+++ b/opensc/build/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+opensc: opensc (SmartCard utilities/libraries for PKCS#11/15 compatible cards)
+opensc:
+opensc: It provides a set of libraries and utilities to access smart
+opensc: cards. Its main focus is on cards that support cryptographic
+opensc: operations, and facilitate their use in security applications such
+opensc: as mail encryption, authentication, and digital signature. OpenSC
+opensc: implements the PKCS#11 API so applications supporting this API such
+opensc: as Mozilla Firefox and Thunderbird can use it. OpenSC implements
+opensc: the PKCS#15 standard and aims to be compatible with every software
+opensc: that does so, too.
+opensc: Homepage: http://www.opensc-project.org/opensc/