aboutsummaryrefslogtreecommitdiff
path: root/perl/perl-Net-XMPP/perl-Net-XMPP.SlackBuild
diff options
context:
space:
mode:
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 de93a00927cb..d52f822f0c46 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