libraries/perl-xml-libxml: Updated for version 1.64

This commit is contained in:
Murat D. Kadirov 2010-05-12 17:42:01 +02:00 committed by Robby Workman
parent 9bc8da52fb
commit e27b4bfd3c

View file

@ -8,7 +8,7 @@ PRGNAM=perl-xml-libxml
SRCNAM=XML-LibXML
VERSION=1.64
ARCH=noarch
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@ -16,24 +16,31 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
DOCS="Changes README LICENSE"
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP || exit 1
cd $TMP
rm -rf $SRCNAM-$VERSION
tar -xzvf $CWD/$SRCNAM-$VERSION.tar.gz || exit 1
cd $SRCNAM-$VERSION || exit 1
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
perl Makefile.PL || exit 1
make || exit 1
#make install INSTALLDIRS=vendor DESTDIR=$PKG || exit 1
PERL5LIB+=$PKG/usr/lib/perl5/site_perl/5.8.8/ make install DESTDIR=$PKG || exit 1
perl Makefile.PL
make \
INSTALLVENDORMAN1DIR=/usr/man/man1 \
INSTALLVENDORMAN3DIR=/usr/man/man3
make \
INSTALLVENDORMAN1DIR=/usr/man/man1 \
INSTALLVENDORMAN3DIR=/usr/man/man3 \
install_vendor \
DESTDIR=$PKG
mv $PKG/usr/share/man $PKG/usr && rm -rf $PKG/usr/share
gzip -9 $PKG/usr/man/man3/* 2> /dev/null
( 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
)
# Remove perlocal.pod and .packlist from $PKG
( for i in perllocal.pod .packlist; do
@ -45,7 +52,7 @@ gzip -9 $PKG/usr/man/man3/* 2> /dev/null
find $PKG -depth -type d -empty -exec rm -rf {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $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/*