aboutsummaryrefslogtreecommitdiff
path: root/system/opensc
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-04-13 14:02:23 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-04-16 12:11:25 +0700
commit705d94c3006f82247a42a98df3a2b58ac71fdd0d (patch)
treef24162364a88138a62690b44574c4a6da1c54e0e /system/opensc
parentd5a62182f1de56751994e67c651831713bb0afb6 (diff)
system/opensc: Fix doinst.sh.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/opensc')
-rw-r--r--system/opensc/doinst.sh4
-rw-r--r--system/opensc/opensc.SlackBuild14
2 files changed, 10 insertions, 8 deletions
diff --git a/system/opensc/doinst.sh b/system/opensc/doinst.sh
index 92ce19f61cf7..6d8bb11040c7 100644
--- a/system/opensc/doinst.sh
+++ b/system/opensc/doinst.sh
@@ -12,3 +12,7 @@ config() {
}
config etc/opensc.conf.new
+
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
diff --git a/system/opensc/opensc.SlackBuild b/system/opensc/opensc.SlackBuild
index 1a31f1878851..0e1c3e2766d2 100644
--- a/system/opensc/opensc.SlackBuild
+++ b/system/opensc/opensc.SlackBuild
@@ -23,11 +23,14 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220301 bkw: Modified by SlackBuilds.org, BUILD=2:
+# - add update-desktop-database to doinst.sh.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=opensc
VERSION=${VERSION:-0.21.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -107,18 +110,13 @@ CXXFLAGS="$SLKCFLAGS" \
--build=$ARCH-slackware-linux
make
-make install DESTDIR=$PKG
+make install-strip DESTDIR=$PKG
+gzip -9 $PKG/usr/man/man*/*
rm -f $PKG/usr/lib*/*.la
# 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