From f16da80314a3be6ccdb44ffc1c4561438d4d5a50 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Thu, 5 Jan 2023 17:22:34 -0500 Subject: perl/perl-file-libmagic: Strip shared lib. Signed-off-by: B. Watson Signed-off-by: Willy Sudiarto Raharjo --- perl/perl-file-libmagic/perl-file-libmagic.SlackBuild | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'perl/perl-file-libmagic/perl-file-libmagic.SlackBuild') diff --git a/perl/perl-file-libmagic/perl-file-libmagic.SlackBuild b/perl/perl-file-libmagic/perl-file-libmagic.SlackBuild index 138c845523..b298daf191 100644 --- a/perl/perl-file-libmagic/perl-file-libmagic.SlackBuild +++ b/perl/perl-file-libmagic/perl-file-libmagic.SlackBuild @@ -6,6 +6,7 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20230105 bkw: BUILD=2, strip the shared object. # 20201025 bkw: update for v1.23. cd $(dirname $0) ; CWD=$(pwd) @@ -13,7 +14,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=perl-file-libmagic TARNAM=File-LibMagic VERSION=${VERSION:-1.23} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -83,6 +84,8 @@ perl -MTest::Fatal -e 0 2>/dev/null && make test make install DESTDIR=$PKG gzip -9 $PKG/usr/man/man?/*.? +find $PKG -name '*.so' -exec strip {} \+ + find $PKG -name perllocal.pod \ -o -name ".packlist" \ -o -name "*.bs" \ -- cgit v1.2.3