aboutsummaryrefslogtreecommitdiff
path: root/perl/perl-xml-libxml/perl-xml-libxml.SlackBuild
diff options
context:
space:
mode:
authordsomero <xgizzmo@slackbuilds.org>2011-04-10 11:30:14 -0400
committerRobby Workman <rworkman@slackbuilds.org>2011-04-11 00:10:57 -0500
commit39ec7da5a2f3e2cea30cf98c71581a8f139d3cda (patch)
treee35014e80743f7238f7d8400ed068761931e3f3d /perl/perl-xml-libxml/perl-xml-libxml.SlackBuild
parent64184edeb3ed908ca5d067c91633e663da1b87a2 (diff)
perl/perl-xml-libxml: Updated for version 1.70.
Added doinst.sh to updated sax parsers. XML::LibXML::Common is included in libxml-libxml-perl now. Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
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/*