summaryrefslogtreecommitdiff
path: root/perl/perl-List-UtilsBy/perl-List-UtilsBy.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'perl/perl-List-UtilsBy/perl-List-UtilsBy.SlackBuild')
-rw-r--r--perl/perl-List-UtilsBy/perl-List-UtilsBy.SlackBuild36
1 files changed, 9 insertions, 27 deletions
diff --git a/perl/perl-List-UtilsBy/perl-List-UtilsBy.SlackBuild b/perl/perl-List-UtilsBy/perl-List-UtilsBy.SlackBuild
index 36ed85412d..bf0898e394 100644
--- a/perl/perl-List-UtilsBy/perl-List-UtilsBy.SlackBuild
+++ b/perl/perl-List-UtilsBy/perl-List-UtilsBy.SlackBuild
@@ -1,8 +1,8 @@
#!/bin/sh
-# Slackware build script for List-UtilsBy
+# Slackware build script for perl-List-UtilsBy
-# Copyright 2017 Randall Sawyer, Scarborough ME, USA
+# Copyright 2020 Jan F. Chadima <jfch@jagda.eu>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,39 +23,19 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=perl-List-UtilsBy
-VERSION=${VERSION:-0.10}
+VERSION=${VERSION:-0.11}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
SRCNAM="$(printf $PRGNAM | cut -d- -f2-)"
-if [ -z "$ARCH" ]; then
- case "$( uname -m )" in
- i?86) ARCH=i586 ;;
- arm*) ARCH=arm ;;
- *) ARCH=$( uname -m ) ;;
- esac
-fi
+ARCH=noarch
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i586" ]; then
- SLKCFLAGS="-O2 -march=i586 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
-else
- SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
-fi
-
set -e
rm -rf $PKG
@@ -74,12 +54,14 @@ find -L . \
perl Makefile.PL \
PREFIX=/usr \
INSTALLDIRS=vendor \
- INSTALLVENDORMAN1DIR=/usr/man/man1 \
INSTALLVENDORMAN3DIR=/usr/man/man3
make
make test
make install DESTDIR=$PKG
+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
@@ -88,8 +70,8 @@ find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f
find $PKG -depth -type d -empty -delete || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -ar \
- Changes LICENSE README \
+cp -a \
+ Changes LICENSE README* \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild