summaryrefslogtreecommitdiff
path: root/perl/perl-Net-XMPP/perl-Net-XMPP.SlackBuild
diff options
context:
space:
mode:
authorChristopher Walker <jisa0224@gmail.com>2019-01-25 20:30:42 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-01-25 20:30:42 +0700
commit82a2dbe1aae68a0f0d9a7308e36229f3ebe8278f (patch)
tree78d53941c41c05d38b9a084d3ed44070ac39c292 /perl/perl-Net-XMPP/perl-Net-XMPP.SlackBuild
parentb9c1f1a629588106bcf515949a11a266c3037517 (diff)
downloadslackbuilds-82a2dbe1aae68a0f0d9a7308e36229f3ebe8278f.tar.gz
perl/perl-Net-XMPP: Updated for version 1.05.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'perl/perl-Net-XMPP/perl-Net-XMPP.SlackBuild')
-rw-r--r--perl/perl-Net-XMPP/perl-Net-XMPP.SlackBuild18
1 files changed, 9 insertions, 9 deletions
diff --git a/perl/perl-Net-XMPP/perl-Net-XMPP.SlackBuild b/perl/perl-Net-XMPP/perl-Net-XMPP.SlackBuild
index de93a00927..d52f822f0c 100644
--- a/perl/perl-Net-XMPP/perl-Net-XMPP.SlackBuild
+++ b/perl/perl-Net-XMPP/perl-Net-XMPP.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for perl-Net-XMPP
# Copyright 2013 Christopher Walker Copperas Cove, TX
+# Copyright 2019, Alexander Verbovetsky, Moscow, Russia
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,13 +24,15 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=perl-Net-XMPP
-VERSION=${VERSION:-1.02}
+VERSION=${VERSION:-1.05}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+SRCNAM="$(printf $PRGNAM | cut -d- -f2-)"
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -45,9 +48,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf Net-XMPP-$VERSION
-tar xvf $CWD/Net-XMPP-$VERSION.tar.gz
-cd Net-XMPP-$VERSION
+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 \) \
@@ -60,7 +63,6 @@ perl Makefile.PL \
INSTALLDIRS=vendor \
INSTALLVENDORMAN3DIR=/usr/man/man3
make
-make test
make install DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
@@ -74,9 +76,7 @@ find $PKG -name "perllocal.pod" -o -name ".packlist" -o -name "*.bs" | xargs r
find $PKG -depth -type d -empty -delete || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- CHANGES LICENSE.LGPL README \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a CHANGES LICENSE README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install