aboutsummaryrefslogtreecommitdiff
path: root/perl/perl-xml-libxml/perl-xml-libxml.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'perl/perl-xml-libxml/perl-xml-libxml.SlackBuild')
-rw-r--r--perl/perl-xml-libxml/perl-xml-libxml.SlackBuild46
1 files changed, 23 insertions, 23 deletions
diff --git a/perl/perl-xml-libxml/perl-xml-libxml.SlackBuild b/perl/perl-xml-libxml/perl-xml-libxml.SlackBuild
index b5752269f2d4b..0d89acc22af29 100644
--- a/perl/perl-xml-libxml/perl-xml-libxml.SlackBuild
+++ b/perl/perl-xml-libxml/perl-xml-libxml.SlackBuild
@@ -1,21 +1,20 @@
#!/bin/sh
-# Slackware build script for perl-xml-namespacesupport
+# Slackware build script for perl-xml-libxml
# Written by Murat D. Kadirov <banderols@gmail.com>
PRGNAM=perl-xml-libxml
-SRCNAM=XML-LibXML
-VERSION=1.64
-BUILD=${BUILD:-2}
+VERSION=1.70
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
+SRCNAM=XML-LibXML
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -36,29 +35,30 @@ cd $SRCNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
-perl Makefile.PL
-make \
+perl Makefile.PL \
+ SKIP_SAX_INSTALL=1 \
+ PREFIX=/usr \
+ INSTALLDIRS=vendor \
INSTALLVENDORMAN1DIR=/usr/man/man1 \
INSTALLVENDORMAN3DIR=/usr/man/man3
-make \
- INSTALLVENDORMAN1DIR=/usr/man/man1 \
- INSTALLVENDORMAN3DIR=/usr/man/man3 \
- install_vendor \
- DESTDIR=$PKG
+make
+make test
+make install DESTDIR=$PKG
+
+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/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
-( cd $PKG/usr/man || exit 1
- find . -type f -exec gzip -9 {} \;
- for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
-)
-( cd $PKG
- find . -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f
-)
+find $PKG -name "perllocal.pod" -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true
-# Remove empty directories
-find $PKG -depth -type d -empty -exec rm -rf {} \;
+find $PKG -depth -type d -empty -delete || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a Changes LICENSE 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
chmod 644 $PKG/usr/doc/$PRGNAM-$VERSION/*