From f29d569cd33a73da5ad675f43a34ad53c5cc9bc6 Mon Sep 17 00:00:00 2001 From: davidovski Date: Thu, 2 Feb 2023 14:10:02 +0000 Subject: Work --- repo/perl-xml-sax/perl-xml-sax.post-install | 5 +++++ repo/perl-xml-sax/perl-xml-sax.post-upgrade | 5 +++++ repo/perl-xml-sax/perl-xml-sax.pre-deinstall | 5 +++++ repo/perl-xml-sax/perl-xml-sax.xibuild | 7 +------ 4 files changed, 16 insertions(+), 6 deletions(-) create mode 100644 repo/perl-xml-sax/perl-xml-sax.post-install create mode 100644 repo/perl-xml-sax/perl-xml-sax.post-upgrade create mode 100644 repo/perl-xml-sax/perl-xml-sax.pre-deinstall (limited to 'repo/perl-xml-sax') diff --git a/repo/perl-xml-sax/perl-xml-sax.post-install b/repo/perl-xml-sax/perl-xml-sax.post-install new file mode 100644 index 0000000..cada1f3 --- /dev/null +++ b/repo/perl-xml-sax/perl-xml-sax.post-install @@ -0,0 +1,5 @@ +#!/bin/sh +# Registers the SAX parser into the registry. + +LC_ALL=C perl -MXML::SAX -e \ + "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()" 2>&1 >/dev/null diff --git a/repo/perl-xml-sax/perl-xml-sax.post-upgrade b/repo/perl-xml-sax/perl-xml-sax.post-upgrade new file mode 100644 index 0000000..cada1f3 --- /dev/null +++ b/repo/perl-xml-sax/perl-xml-sax.post-upgrade @@ -0,0 +1,5 @@ +#!/bin/sh +# Registers the SAX parser into the registry. + +LC_ALL=C perl -MXML::SAX -e \ + "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()" 2>&1 >/dev/null diff --git a/repo/perl-xml-sax/perl-xml-sax.pre-deinstall b/repo/perl-xml-sax/perl-xml-sax.pre-deinstall new file mode 100644 index 0000000..fb56f1a --- /dev/null +++ b/repo/perl-xml-sax/perl-xml-sax.pre-deinstall @@ -0,0 +1,5 @@ +#!/bin/sh +# Unregisters the SAX parser from the registry. + +LC_ALL=C perl -MXML::SAX -e \ + "XML::SAX->remove_parser(q(XML::SAX::PurePerl))->save_parsers()" 2>&1 >/dev/null diff --git a/repo/perl-xml-sax/perl-xml-sax.xibuild b/repo/perl-xml-sax/perl-xml-sax.xibuild index 52500aa..3643f9e 100644 --- a/repo/perl-xml-sax/perl-xml-sax.xibuild +++ b/repo/perl-xml-sax/perl-xml-sax.xibuild @@ -3,8 +3,7 @@ NAME="perl-xml-sax" DESC="Simple API for XML" -MAKEDEPS="" -DEPS="perl-xml-sax-base" +MAKEDEPS="perl" PKG_VER=1.02 SOURCE="https://cpan.metacpan.org/authors/id/G/GR/GRANTM/XML-SAX-$PKG_VER.tar.gz" @@ -19,7 +18,3 @@ package() { find "$PKG_DEST" \( -name perllocal.pod -o -name .packlist \) -delete } -postinstall () { - LC_ALL=C perl -MXML::SAX -e \ - "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()" 2>&1 >/dev/null -} -- cgit v1.2.1