[arch-commits] Commit in perl-xml-libxml/repos (3 files)

Felix Yan felixonmars at archlinux.org
Mon May 24 10:44:55 UTC 2021


    Date: Monday, May 24, 2021 @ 10:44:55
  Author: felixonmars
Revision: 416202

archrelease: copy trunk to staging-x86_64

Added:
  perl-xml-libxml/repos/staging-x86_64/
  perl-xml-libxml/repos/staging-x86_64/PKGBUILD
    (from rev 416201, perl-xml-libxml/trunk/PKGBUILD)
  perl-xml-libxml/repos/staging-x86_64/perl-xml-libxml.install
    (from rev 416201, perl-xml-libxml/trunk/perl-xml-libxml.install)

-------------------------+
 PKGBUILD                |   36 ++++++++++++++++++++++++++++++++++++
 perl-xml-libxml.install |   23 +++++++++++++++++++++++
 2 files changed, 59 insertions(+)

Copied: perl-xml-libxml/repos/staging-x86_64/PKGBUILD (from rev 416201, perl-xml-libxml/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2021-05-24 10:44:55 UTC (rev 416202)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Jonathan Steel <jsteel at aur.archlinux.org>
+# Contributor: Justin "juster" Davis <jrcd83 at gmail.com>
+# Contributor: François Charette <francois.archlinux.org>
+
+pkgname=perl-xml-libxml
+pkgver=2.0207
+pkgrel=2
+pkgdesc="Interface to the libxml library"
+arch=('x86_64')
+url="https://search.cpan.org/dist/XML-LibXML"
+license=('GPL')
+depends=('perl-alien-libxml2' 'perl-xml-sax' 'perl-xml-namespacesupport')
+checkdepends=('perl-test-pod' 'perl-test-leaktrace' 'perl-cpan-changes' 'perl-uri')
+provides=('perl-libxml' 'perl-xml-libxml-common')
+replaces=('perl-libxml' 'perl-xml-libxml-common')
+options=('!emptydirs')
+install=perl-xml-libxml.install
+source=(https://www.cpan.org/authors/id/S/SH/SHLOMIF/XML-LibXML-$pkgver.tar.gz)
+sha512sums=('86bf4200c800e1295161c3217892398dbc65e107ad1a3df8ea7f237350ba67d88ad7b18ab7123e647053a8721bc13a8959ddb101fdc6de18dcaef02c0f0f5b58')
+
+build() {
+  cd XML-LibXML-$pkgver
+  perl Makefile.PL INSTALLDIRS=vendor
+  make
+}
+
+check() {
+  cd XML-LibXML-$pkgver
+  make test
+}
+
+package() {
+  cd XML-LibXML-$pkgver
+  make pure_install doc_install DESTDIR="$pkgdir"/
+}

Copied: perl-xml-libxml/repos/staging-x86_64/perl-xml-libxml.install (from rev 416201, perl-xml-libxml/trunk/perl-xml-libxml.install)
===================================================================
--- staging-x86_64/perl-xml-libxml.install	                        (rev 0)
+++ staging-x86_64/perl-xml-libxml.install	2021-05-24 10:44:55 UTC (rev 416202)
@@ -0,0 +1,23 @@
+post_install() {
+  echo ":: Installing SAX XML Parsers"
+  perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::LibXML::SAX::Parser))->save_parsers()"
+  perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::LibXML::SAX))->save_parsers()"
+}
+
+post_upgrade() {
+  if [[ ! -f /usr/share/perl5/vendor_perl/XML/SAX/ParserDetails.ini ]]; then
+    post_install
+  else
+    libxmlcount=`grep -c XML::LibXML::SAX /usr/share/perl5/vendor_perl/XML/SAX/ParserDetails.ini`
+    if [[ $libxmlcount == 0 ]]; then
+      post_install
+    fi
+  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::LibXML::SAX::Parser))->save_parsers()"
+    perl -MXML::SAX -e "XML::SAX->remove_parser(q(XML::LibXML::SAX))->save_parsers()"
+  fi
+}



More information about the arch-commits mailing list