summaryrefslogtreecommitdiffstats
path: root/perl/perl-SNMP-Info/perl-SNMP-Info.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'perl/perl-SNMP-Info/perl-SNMP-Info.SlackBuild')
-rw-r--r--perl/perl-SNMP-Info/perl-SNMP-Info.SlackBuild33
1 files changed, 17 insertions, 16 deletions
diff --git a/perl/perl-SNMP-Info/perl-SNMP-Info.SlackBuild b/perl/perl-SNMP-Info/perl-SNMP-Info.SlackBuild
index e14f0f3ca1..29f113ec91 100644
--- a/perl/perl-SNMP-Info/perl-SNMP-Info.SlackBuild
+++ b/perl/perl-SNMP-Info/perl-SNMP-Info.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for perl-SNMP-Info
-# Copyright 2013, Thibaut Notteboom, Paris, FRANCE
+# Copyright 2013-2023, Thibaut Notteboom, Paris, FRANCE
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=perl-SNMP-Info
-VERSION=${VERSION:-3.08}
+VERSION=${VERSION:-3.95}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -40,9 +40,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
@@ -61,6 +58,9 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
+elif [ "$ARCH" = "aarch64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
@@ -76,18 +76,19 @@ 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 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 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-perl Makefile.PL \
- PREFIX=/usr \
- INSTALLDIRS=vendor \
- INSTALLVENDORMAN3DIR=/usr/man/man3
-make
-make test
-make install DESTDIR=$PKG
+perl Build.PL \
+ --installdirs vendor \
+ --config installvendorman1dir=/usr/man/man1 \
+ --config installvendorman3dir=/usr/man/man3
+./Build
+./Build test
+./Build install \
+ --destdir $PKG
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
@@ -98,7 +99,7 @@ find $PKG -depth -type d -empty -delete || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- COPYRIGHT ChangeLog DEVELOP MANIFEST README \
+ Changes LICENSE MANIFEST README \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild