mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
19 lines
653 B
Text
19 lines
653 B
Text
post_install() {
|
|
echo ":: Installing SAX XML Parsers"
|
|
/usr/bin/perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::LibXML::SAX::Parser))->save_parsers()"
|
|
/usr/bin/perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::LibXML::SAX))->save_parsers()"
|
|
}
|
|
|
|
post_upgrade() {
|
|
libxmlcount=`grep -c XML::LibXML::SAX /usr/share/perl5/vendor_perl/XML/SAX/ParserDetails.ini`
|
|
if [[ $libxmlcount == 0 ]]; then
|
|
echo ":: Installing SAX XML Parsers"
|
|
/usr/bin/perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::LibXML::SAX::Parser))->save_parsers()"
|
|
/usr/bin/perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::LibXML::SAX))->save_parsers()"
|
|
fi
|
|
}
|
|
|
|
|
|
op=$1
|
|
shift
|
|
$op $*
|