summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author B. Watson2021-10-12 08:29:08 +0200
committer Willy Sudiarto Raharjo2021-10-12 19:52:45 +0200
commitb8e9f2a05ba25bad6a40e30150b4f1654029e380 (patch)
treee2ce73669b7f8d61bdbe8ec449e9273c4c3c6297
parent383818366e77be70f69d8d0d380363615b56de13 (diff)
downloadslackbuilds-b8e9f2a05ba25bad6a40e30150b4f1654029e380.tar.gz
perl/perl-xml-fast: Remove template comment.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--perl/perl-xml-fast/perl-xml-fast.SlackBuild14
1 files changed, 3 insertions, 11 deletions
diff --git a/perl/perl-xml-fast/perl-xml-fast.SlackBuild b/perl/perl-xml-fast/perl-xml-fast.SlackBuild
index 832fc52240..5e0c0249d3 100644
--- a/perl/perl-xml-fast/perl-xml-fast.SlackBuild
+++ b/perl/perl-xml-fast/perl-xml-fast.SlackBuild
@@ -22,9 +22,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -59,11 +56,8 @@ rm -rf $SRCNAM-$VERSION
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$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 {} \;
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
perl Makefile.PL \
PREFIX=/usr \
@@ -72,13 +66,11 @@ perl Makefile.PL \
make
make test
make install DESTDIR=$PKG
+gzip $PKG/usr/man/man3/*
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
-
find $PKG -name perllocal.pod \
-o -name ".packlist" \
-o -name "*.bs" \