initial import

This commit is contained in:
2025-06-22 20:39:04 -05:00
commit f8a70886f0
3428 changed files with 302546 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: XML-SAX-Expat
Upstream-Contact: Robin Berjon
Source: https://metacpan.org/release/XML-SAX-Expat
Files: *
Copyright: 2001-2008, Robin Berjon
License: Artistic or GPL-1+
Files: debian/*
Copyright:
2001-2003, Ardo van Rangelrooij <ardo@debian.org>
2004, Jay Bonci <jaybonci@debian.org>
2008, Niko Tyni <ntyni@debian.org>
2008-2018, gregor herrmann <gregoa@debian.org>
2011, Ansgar Burchardt <ansgar@debian.org>
License: Artistic or GPL-1+
License: Artistic
This program is free software; you can redistribute it and/or modify
it under the terms of the Artistic License, which comes with Perl.
.
On Debian systems, the complete text of the Artistic License can be
found in `/usr/share/common-licenses/Artistic'.
License: GPL-1+
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 1, or (at your option)
any later version.
.
On Debian systems, the complete text of version 1 of the GNU General
Public License can be found in `/usr/share/common-licenses/GPL-1'.

View File

@@ -0,0 +1,30 @@
# Maintainer: Jesus E. <heckyel@riseup.net>
pkgname=perl-xml-sax-expat
pkgver=0.51
pkgrel=1
pkgdesc="SAX2 Driver for Expat (XML::Parser)"
arch=('any')
url='https://search.cpan.org/dist/XML-SAX-Expat'
license=('GPL-1')
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
LICENSE)
sha512sums=('9cd3c7a1cdf0b0a49ea9f871095984fb67ff54c9e5ed49884c591a450c2662acbd6d0f5232a5720663bcab09ff4f41093d414daa0b72457dc98eea5001270478'
'0c62babc1ca9911fdb09b7026d3162cab14d4e79ceaf9bf84efec07a238da72df5d6f851974d6d64254bcb08c4721c4d9505464e9a426a93b6882a81d095b526')
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
install -Dm644 "$srcdir"/LICENSE -t "${pkgdir}/usr/share/licenses/$pkgname"
}

View File

@@ -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
}