summaryrefslogtreecommitdiff
path: root/perl/perl-NetAddr-IP/perl-NetAddr-IP.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'perl/perl-NetAddr-IP/perl-NetAddr-IP.SlackBuild')
-rw-r--r--perl/perl-NetAddr-IP/perl-NetAddr-IP.SlackBuild21
1 files changed, 7 insertions, 14 deletions
diff --git a/perl/perl-NetAddr-IP/perl-NetAddr-IP.SlackBuild b/perl/perl-NetAddr-IP/perl-NetAddr-IP.SlackBuild
index 20774a67d0..9f0ac0fd7b 100644
--- a/perl/perl-NetAddr-IP/perl-NetAddr-IP.SlackBuild
+++ b/perl/perl-NetAddr-IP/perl-NetAddr-IP.SlackBuild
@@ -27,12 +27,13 @@
#
# Modified by the SlackBuilds.org project.
-SRCNAM=NetAddr-IP
-PRGNAM=perl-$SRCNAM
-VERSION=${VERSION:-4.058}
+PRGNAM=perl-NetAddr-IP
+VERSION=${VERSION:-4.059}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+SRCNAM=$(echo $PRGNAM | cut -f2 -d-)
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
@@ -48,8 +49,6 @@ OUTPUT=${OUTPUT:-/tmp}
set -e
-DOCS="Changes"
-
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
@@ -64,6 +63,7 @@ else
LIBDIRSUFFIX=""
fi
+DOCS="Changes Copying"
rm -fr $TMP/$SRCNAM-$VERSION $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -84,25 +84,18 @@ perl Makefile.PL PREFIX=/usr INSTALLDIRS=vendor INSTALLVENDORMAN3DIR=/usr/man/ma
make
make install DESTDIR=$PKG
-### putting essential docs
+# putting essential docs
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-# Remove perlocal.pod and .packlist from $PKG
find $PKG -name "perllocal.pod" -o -name ".packlist" -o -name "*.bs" | xargs rm -f
-# strip binaries
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+find $PKG -depth -type d -empty -exec rm -rf {} \;
-# find & compress man pages
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
-# Remove empty directories
-find $PKG -depth -type d -empty -exec rm -rf {} \;
-
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc