aboutsummaryrefslogtreecommitdiff
path: root/system/pmdk/pmdk.SlackBuild
diff options
context:
space:
mode:
authorVijay Marcel <vijaymarcel@outlook.com>2024-02-22 21:35:25 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-02-23 16:24:24 +0700
commit25cdc44104031e348407de1d5dabcc25d36b4d99 (patch)
tree65b0f4e2d1628ec538b8e2f6d89cf5a4dfe1d7d8 /system/pmdk/pmdk.SlackBuild
parent4d49768bfabea3df1baf80baac2f0e91d5a7e5f5 (diff)
system/pmdk: Updated for version 1.13.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/pmdk/pmdk.SlackBuild')
-rw-r--r--system/pmdk/pmdk.SlackBuild12
1 files changed, 8 insertions, 4 deletions
diff --git a/system/pmdk/pmdk.SlackBuild b/system/pmdk/pmdk.SlackBuild
index febca9616c..aaaf5c1c17 100644
--- a/system/pmdk/pmdk.SlackBuild
+++ b/system/pmdk/pmdk.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for pmdk
-# Copyright 2022-2023 Vijay Marcel
+# Copyright 2022-2024 Vijay Marcel
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=pmdk
-VERSION=${VERSION:-1.13.0}
+VERSION=${VERSION:-1.13.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -83,10 +83,14 @@ make -C doc all
make -C doc install DESTDIR=$PKG/usr/man/
# Don't ship .la files:
-rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
+rm -rvf $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
+
+# Remove static libs
+
+rm -rvf $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.a
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
+ | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded --remove-section=.comment --remove-section=.note 2> /dev/null || true
mv -v $PKG/usr/etc $PKG/etc
mv -v $PKG/usr/man/usr/local/share/man/* $PKG/usr/man/