perl/perl-file-libmagic: Strip shared lib.

Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2023-01-05 17:22:34 -05:00 committed by Willy Sudiarto Raharjo
parent 977dd61557
commit f16da80314
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -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" \