summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-05-31 18:35:07 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-05-31 18:35:07 (GMT)
commit63280ca05819bba1ee8d91def042109f42c54ee4 (patch)
tree312e4b3bc840c8541d2d5f5f9e8bdabce67acb75
parent5d0dba26c9f9154d6897d0f7102b46f1c9e0210b (diff)
downloadlinhes_pkgbuild-63280ca05819bba1ee8d91def042109f42c54ee4.zip
linhes_pkgbuild-63280ca05819bba1ee8d91def042109f42c54ee4.tar.gz
linhes_pkgbuild-63280ca05819bba1ee8d91def042109f42c54ee4.tar.bz2
perl-xml-sax-expat: .install
-rw-r--r--abs/core/perl_modules/perl-xml-sax-expat/perl-xml-sax-expat.install17
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
+}