[arch-commits] Commit in perl-xml-sax-expat/repos (3 files)
Felix Yan
felixonmars at archlinux.org
Tue Jul 7 13:42:31 UTC 2020
Date: Tuesday, July 7, 2020 @ 13:42:31
Author: felixonmars
Revision: 658572
archrelease: copy trunk to community-staging-any
Added:
perl-xml-sax-expat/repos/community-staging-any/
perl-xml-sax-expat/repos/community-staging-any/PKGBUILD
(from rev 658571, perl-xml-sax-expat/trunk/PKGBUILD)
perl-xml-sax-expat/repos/community-staging-any/perl-xml-sax-expat.install
(from rev 658571, perl-xml-sax-expat/trunk/perl-xml-sax-expat.install)
----------------------------+
PKGBUILD | 27 +++++++++++++++++++++++++++
perl-xml-sax-expat.install | 17 +++++++++++++++++
2 files changed, 44 insertions(+)
Copied: perl-xml-sax-expat/repos/community-staging-any/PKGBUILD (from rev 658571, perl-xml-sax-expat/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-07-07 13:42:31 UTC (rev 658572)
@@ -0,0 +1,27 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Francois Charette <firmicus at gmx.net>
+
+pkgname=perl-xml-sax-expat
+pkgver=0.51
+pkgrel=7
+pkgdesc="SAX2 Driver for Expat (XML::Parser) "
+arch=('any')
+url="https://search.cpan.org/dist/XML-SAX-Expat"
+license=('GPL' 'PerlArtistic')
+depends=('perl-xml-namespacesupport' 'perl-xml-parser' 'perl-xml-sax')
+install=perl-xml-sax-expat.install
+options=('!emptydirs')
+source=(https://www.cpan.org/authors/id/B/BJ/BJOERN/XML-SAX-Expat-$pkgver.tar.gz)
+sha256sums=('4c016213d0ce7db2c494e30086b59917b302db8c292dcd21f39deebd9780c83f')
+
+build() {
+ cd "$srcdir"/XML-SAX-Expat-$pkgver
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+package(){
+ cd "$srcdir"/XML-SAX-Expat-$pkgver
+ make pure_install doc_install DESTDIR="$pkgdir"
+ find "$pkgdir" -name '.packlist' -delete
+ find "$pkgdir" -name '*.pod' -delete
+}
Copied: perl-xml-sax-expat/repos/community-staging-any/perl-xml-sax-expat.install (from rev 658571, perl-xml-sax-expat/trunk/perl-xml-sax-expat.install)
===================================================================
--- community-staging-any/perl-xml-sax-expat.install (rev 0)
+++ community-staging-any/perl-xml-sax-expat.install 2020-07-07 13:42:31 UTC (rev 658572)
@@ -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
+}
More information about the arch-commits
mailing list