diff options
author | Britney Fransen <brfransen@gmail.com> | 2018-05-31 18:35:07 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2018-05-31 18:35:07 (GMT) |
commit | 63280ca05819bba1ee8d91def042109f42c54ee4 (patch) | |
tree | 312e4b3bc840c8541d2d5f5f9e8bdabce67acb75 /abs/core/perl_modules | |
parent | 5d0dba26c9f9154d6897d0f7102b46f1c9e0210b (diff) | |
download | linhes_pkgbuild-63280ca05819bba1ee8d91def042109f42c54ee4.zip linhes_pkgbuild-63280ca05819bba1ee8d91def042109f42c54ee4.tar.gz linhes_pkgbuild-63280ca05819bba1ee8d91def042109f42c54ee4.tar.bz2 |
perl-xml-sax-expat: .install
Diffstat (limited to 'abs/core/perl_modules')
-rw-r--r-- | abs/core/perl_modules/perl-xml-sax-expat/perl-xml-sax-expat.install | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/abs/core/perl_modules/perl-xml-sax-expat/perl-xml-sax-expat.install b/abs/core/perl_modules/perl-xml-sax-expat/perl-xml-sax-expat.install new file mode 100644 index 0000000..a95c9e3 --- /dev/null +++ b/abs/core/perl_modules/perl-xml-sax-expat/perl-xml-sax-expat.install @@ -0,0 +1,17 @@ +post_install() { +if [ ! -r /usr/lib/perl5/site_perl/current/XML/SAX/ParserDetails.ini ]; then + perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::Expat))->save_parsers()" +fi +} + +post_upgrade() { +if [ ! -r /usr/lib/perl5/site_perl/current/XML/SAX/ParserDetails.ini ]; then + perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::Expat))->save_parsers()" +fi +} + +pre_remove() { + if [[ -f /usr/share/perl5/vendor_perl/XML/SAX/ParserDetails.ini ]]; then + perl -MXML::SAX -e "XML::SAX->remove_parser(q(XML::SAX::Expat))->save_parsers()" + fi +} |