diff options
Diffstat (limited to 'libraries/perl-xml-libxml/perl-xml-libxml.SlackBuild')
-rw-r--r-- | libraries/perl-xml-libxml/perl-xml-libxml.SlackBuild | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/libraries/perl-xml-libxml/perl-xml-libxml.SlackBuild b/libraries/perl-xml-libxml/perl-xml-libxml.SlackBuild index 68ab54c208..fd5f45d6f2 100644 --- a/libraries/perl-xml-libxml/perl-xml-libxml.SlackBuild +++ b/libraries/perl-xml-libxml/perl-xml-libxml.SlackBuild @@ -7,7 +7,7 @@ PRGNAM=perl-xml-libxml SRCNAM=XML-LibXML VERSION=1.64 -ARCH=noarch +ARCH=${ARCH:-i486} BUILD=${BUILD:-2} TAG=${TAG:-_SBo} @@ -41,12 +41,9 @@ make \ 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 - find $PKG -name "$i" -exec rm -f {} \; - done -) || exit 1 +( cd $PKG + find . -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f +) # Remove empty directories find $PKG -depth -type d -empty -exec rm -rf {} \; @@ -60,4 +57,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |